<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>NaN after rounding</title><link>https://www.infopathdev.com:443/forums/thread/76698.aspx</link><pubDate>Wed, 21 Mar 2012 14:52:54 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:76698</guid><dc:creator>eliasen</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/76698.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=76698</wfw:commentRss><description>&lt;p&gt;Hi all&lt;/p&gt;
&lt;p&gt;Using InfoPath 2007 on Forms Server 2007.&lt;/p&gt;
&lt;p&gt;I have a data source field which is a double. I have a textbox, in which users can enter a value, and I have a rule that basically does this: &amp;quot;. = round(. * 10) div 10&amp;quot; - so basically, I multiply the value by 10, round it and divide by ten, så I am sure I only have one digit after the decimalpoint. The rounded number is used for calculations later on, so I cannot just use the display properties of the textbox to only show one decimal.&lt;/p&gt;
&lt;p&gt;Now, what happens is that the rule seems to work just fine; If I enter &amp;quot;27,17&amp;quot; it will change quickly to &amp;quot;27,2&amp;quot; and I am happy. Trouble is that after the next post back I seem to have an NaN instead. In my example I have a button with a rule on it with an action that switches view. After the view has been switched, the &amp;quot;27,2&amp;quot; has completely disappeared and a &amp;quot;NaN&amp;quot; appears instead.&lt;/p&gt;
&lt;p&gt;I am not sure where the error&amp;nbsp;happens.But it is rather annoying. I expect it has to do with Culture somehow - the fact that Danes use comma as a decimal separator as opposed to the English notation of using the period. I do need the Danish notation, though.&lt;/p&gt;
&lt;p&gt;Does anyone have any thoughts on this?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;</description></item></channel></rss>