<?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>Controls</title><link>https://www.infopathdev.com:443/forums/43.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Very strange behavior on repeating table values - HELP!</title><link>https://www.infopathdev.com:443/forums/thread/54057.aspx</link><pubDate>Thu, 22 Apr 2010 20:09:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:54057</guid><dc:creator>oldradio99</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/54057.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=54057</wfw:commentRss><description>&lt;p style="MARGIN:0in 0in 0pt;" class="MsoNormal"&gt;&lt;font size="3" face="Calibri"&gt;I finally found the solution.&amp;nbsp; &lt;/font&gt;&lt;/p&gt;
&lt;p style="MARGIN:0in 0in 0pt;" class="MsoNormal"&gt;&lt;font size="3" face="Calibri"&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="MARGIN:0in 0in 0pt;" class="MsoNormal"&gt;&lt;font size="3" face="Calibri"&gt;It is at the end of this article&amp;nbsp; &lt;/font&gt;&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;&lt;font color="#800080" size="3" face="Calibri"&gt;http://blogs.msdn.com/infopath/archive/2008/04/17/invalid-data-error-when-calculating-the-result-of-2-or-more-fields.aspx&lt;/font&gt;&lt;/a&gt;&lt;/p&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;It has to do with something called &lt;span style="mso-ansi-language:EN;"&gt;IEEE Floating-Point Errors.&lt;/span&gt;&lt;/font&gt;&lt;/font&gt; 
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Very strange behavior on repeating table values - HELP!</title><link>https://www.infopathdev.com:443/forums/thread/54056.aspx</link><pubDate>Thu, 22 Apr 2010 19:50:38 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:54056</guid><dc:creator>oldradio99</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/54056.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=54056</wfw:commentRss><description>&lt;p&gt;I took another step today with the same strange results.&lt;/p&gt;
&lt;p&gt;I created a form not bound to any data source. Filed1 became a repeating field.&amp;nbsp; Field2 was set as sum field1.&amp;nbsp; Field3 was a text box and Field4 was set as Field2 minus Field3.&lt;/p&gt;
&lt;p&gt;Entering two repeating rows with values of 100 and .01 and then entering 100 in field3 yields a result in field4 of &lt;strong&gt;-0.009999999999990905&lt;/strong&gt;.&amp;nbsp; The result should be .01.&lt;/p&gt;
&lt;p&gt;If the .01 value is set to anything under .50 the results are wrong.&amp;nbsp; .50 and over work fine.&lt;/p&gt;
&lt;p&gt;All fields are set as double decimal.&lt;/p&gt;
&lt;p&gt;is this a math bug in InfoPath?&lt;/p&gt;
&lt;p&gt;Help please.&amp;nbsp; I am out of ideas.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Very strange behavior on repeating table values - HELP!</title><link>https://www.infopathdev.com:443/forums/thread/54035.aspx</link><pubDate>Thu, 22 Apr 2010 15:15:56 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:54035</guid><dc:creator>oldradio99</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/54035.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=54035</wfw:commentRss><description>&lt;p&gt;setting the fields to double decimal has no effect other than showing the value as .01 but the actual data is the .009999999999999&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/infopathdev/images/icon-quote.gif"&gt; &lt;strong&gt;Qazi Anis:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt; 
&lt;p&gt;set datatype of total field&amp;nbsp; to decimal(double) type. &lt;/p&gt;
&lt;p&gt;right click total field -&amp;gt; set data type&amp;nbsp; to decimal (double)&lt;/p&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt; 
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Very strange behavior on repeating table values - HELP!</title><link>https://www.infopathdev.com:443/forums/thread/54011.aspx</link><pubDate>Thu, 22 Apr 2010 07:37:16 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:54011</guid><dc:creator>Qazi Anis</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/54011.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=54011</wfw:commentRss><description>&lt;p&gt;set datatype of total field&amp;nbsp; to decimal(double) type. &lt;/p&gt;
&lt;p&gt;right click total field -&amp;gt; set data type&amp;nbsp; to decimal (double)&lt;/p&gt;</description></item><item><title>Very strange behavior on repeating table values - HELP!</title><link>https://www.infopathdev.com:443/forums/thread/54000.aspx</link><pubDate>Wed, 21 Apr 2010 18:05:35 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:54000</guid><dc:creator>oldradio99</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/54000.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=54000</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;I was having a major challenge with a form I was developing.&amp;nbsp; There is no special code.&amp;nbsp; Everything is done with point and click.&lt;/p&gt;
&lt;p&gt;To isolate the issue, I created a simple SQL table shown below.&amp;nbsp; Basically 4 fields &lt;/p&gt;
&lt;p&gt;&lt;img src="http://www.myantiqueradio.com/IP/cap1.JPG" alt="" /&gt;&lt;/p&gt;
&lt;p&gt;I then created a simple repeating table linked to the database connection.&lt;/p&gt;
&lt;p&gt;Field1 is the only field in te repeating table.&lt;/p&gt;
&lt;p&gt;The other three fields are form fields in the table footer and I have label them how they are set up.&lt;/p&gt;
&lt;p&gt;I used the form fields to set the default value for fields2,3 &amp;amp; 4 in the database.&lt;/p&gt;
&lt;p&gt;As you can see in the first example, the total field gives a very weird result.&lt;/p&gt;
&lt;p&gt;Under the table I just dragged the database fields so you can see the values that are getting populated.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img src="http://www.myantiqueradio.com/IP/cap2.JPG" alt="" /&gt;&lt;/p&gt;
&lt;p&gt;The error on the data line just says Invalid data.&lt;/p&gt;
&lt;p&gt;Now in the next example, I did not use 100.01 but 100.50.&amp;nbsp; No form error.&lt;/p&gt;
&lt;p&gt;I gett he error and very stange result when the decimal value is under .50&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img src="http://www.myantiqueradio.com/IP/cap3.JPG" alt="" /&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I have tried every combination of formating the fields from numbers to currentcy with no effect.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;So now my question comes to is this a bug in InfoPath and how do I get around it?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;I hope I have described everything adequately but if anot ask away.&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;</description></item></channel></rss>