<?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>Re: NaN error when adding up two double values</title><link>https://www.infopathdev.com:443/forums/thread/53572.aspx</link><pubDate>Mon, 12 Apr 2010 10:11:56 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:53572</guid><dc:creator>gerwinee</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/53572.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=53572</wfw:commentRss><description>&lt;p&gt;Did anybody tried to deploy the sample&amp;nbsp;I included in my previous post and did that work without problems?&lt;/p&gt;</description></item><item><title>Re: NaN error when adding up two double values</title><link>https://www.infopathdev.com:443/forums/thread/53339.aspx</link><pubDate>Fri, 02 Apr 2010 11:04:57 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:53339</guid><dc:creator>Patrick Finnicum</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/53339.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=53339</wfw:commentRss><description>&lt;p&gt;hmmmm....&amp;nbsp; i can&amp;#39;t reproduce it either.&amp;nbsp; have you tried deleting the textboxes and starting over?&amp;nbsp; Try that, but start with only one rule.&amp;nbsp; If that works, then add the other.&amp;nbsp; Start small and build your way up.&lt;/p&gt;
&lt;p&gt;Sorry I don&amp;#39;t have more for ya, but I can&amp;#39;t get it to fail on my end.&lt;/p&gt;</description></item><item><title>Re: NaN error when adding up two double values</title><link>https://www.infopathdev.com:443/forums/thread/53295.aspx</link><pubDate>Thu, 01 Apr 2010 13:12:25 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:53295</guid><dc:creator>gerwinee</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/53295.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=53295</wfw:commentRss><description>&lt;p&gt;How can i use 12,50 then? Because 12.50 isn&amp;#39;t allowed either.&lt;/p&gt;</description></item><item><title>Re: NaN error when adding up two double values</title><link>https://www.infopathdev.com:443/forums/thread/53269.aspx</link><pubDate>Wed, 31 Mar 2010 12:40:25 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:53269</guid><dc:creator>Patrick Finnicum</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/53269.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=53269</wfw:commentRss><description>&lt;p&gt;NaN is an error code returned by Javascript (hence why it only appears in a browser).&amp;nbsp; It stands for Not A Number.&amp;nbsp; I&amp;#39;d check the values of the numbers your adding up, and ensure that they have numbers in them (and are not null).&lt;/p&gt;
&lt;p&gt;if one of the variables&amp;nbsp;is as you posted &amp;quot;12,50&amp;quot;, then that&amp;#39;s a problem because of the comma -- which is then interpreted to be text string.&lt;/p&gt;</description></item><item><title>Re: NaN error when adding up two double values</title><link>https://www.infopathdev.com:443/forums/thread/53267.aspx</link><pubDate>Wed, 31 Mar 2010 11:19:53 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:53267</guid><dc:creator>gerwinee</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/53267.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=53267</wfw:commentRss><description>&lt;p&gt;The problem only appears when i use it in a webbrowser.&lt;/p&gt;</description></item><item><title>Re: NaN error when adding up two double values</title><link>https://www.infopathdev.com:443/forums/thread/53264.aspx</link><pubDate>Wed, 31 Mar 2010 10:18:52 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:53264</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/53264.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=53264</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Might you be able to attach a stripped-down version of your form that can reproduce this issue?&amp;nbsp; I can&amp;#39;t seem to get it to happen on my end.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>NaN error when adding up two double values</title><link>https://www.infopathdev.com:443/forums/thread/53263.aspx</link><pubDate>Wed, 31 Mar 2010 09:58:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:53263</guid><dc:creator>gerwinee</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/53263.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=53263</wfw:commentRss><description>&lt;p&gt;I use InfoPath 2007.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I tried to do the following.&lt;br /&gt;Select a check box and the following rule will be applied: total = total + articlePrice&lt;br /&gt;When i uncheck the check box the following rule will be applied: total = total - articlePrice&lt;/p&gt;
&lt;p&gt;It works fine, until articlePrice has decimals in it (12,50) and i want to save or close the field, then i get&amp;nbsp;a NaN error or i get the message than only numbers are allowed.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve tried the following sollution, but with no luck. &lt;a href="http://blogs.msdn.com/infopath/archive/2008/04/17/invalid-data-error-when-calculating-the-result-of-2-or-more-fields.aspx"&gt;http://blogs.msdn.com/infopath/archive/2008/04/17/invalid-data-error-when-calculating-the-result-of-2-or-more-fields.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;total and articlePrice are both&amp;nbsp;TextBox with data type Decimal (double)&lt;br /&gt;total has a default value of 0.&lt;/p&gt;</description></item></channel></rss>