<?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: Error with double decimal Calculated Values</title><link>https://www.infopathdev.com:443/forums/thread/90757.aspx</link><pubDate>Mon, 17 Jun 2013 22:08:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:90757</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/90757.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=90757</wfw:commentRss><description>&lt;p&gt;Hi CCBSMF,&lt;/p&gt;
&lt;p&gt;We can&amp;#39;t find the support email. Which email address did you use? &lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;</description></item><item><title>Re: Error with double decimal Calculated Values</title><link>https://www.infopathdev.com:443/forums/thread/90629.aspx</link><pubDate>Wed, 12 Jun 2013 19:03:27 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:90629</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/90629.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=90629</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hey- I&amp;#39;m sorry you didn&amp;#39;t get a reply from your support email - I&amp;#39;ll follow up and see what happened there. Thanks for the follow up!&lt;/p&gt;</description></item><item><title>Re: Error with double decimal Calculated Values</title><link>https://www.infopathdev.com:443/forums/thread/90625.aspx</link><pubDate>Wed, 12 Jun 2013 18:45:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:90625</guid><dc:creator>CCBSMF</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/90625.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=90625</wfw:commentRss><description>&lt;p&gt;So i emailed qdabra support, never heard back from anyone.&lt;/p&gt;
&lt;p&gt;I decided to spend some time trying to dechiper this problem as i am pressed to get this project finished. AND BOOM, the answer hit me. here it is for anyone ever encountering the same problem : &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;number(substring(string(round((my:o_labour + my:o_expense) * 100) * .01), 1, string-length(substring-before(string(round((my:o_labour + my:o_expense) * 100) * .01), &amp;quot;.&amp;quot;)) + 9))&lt;/p&gt;
&lt;p&gt;once i nested the rounding formula in the truncating decimal formula, i no longer experienced any more long decimal sums from a simple addidtion calculation. I&amp;#39;ve applied this to all fields or rules that invlove a calculation. &lt;/p&gt;
&lt;p&gt;for a little more indepth syntax with copying of data by respective row:&lt;/p&gt;
&lt;p&gt;number(substring(string(round((../../../../my:zumi/my:effort[../my:row = current()/../@line_nbr] + ../../../../my:zumi/my:effort_to_complete[../my:row = current()/../@line_nbr]) * 100) * .01), 1, string-length(substring-before(string(round((../../../../my:zumi/my:effort[../my:row = current()/../@line_nbr] + ../../../../my:zumi/my:effort_to_complete[../my:row = current()/../@line_nbr]) * 100) * .01), &amp;quot;.&amp;quot;)) + 9))&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I hope this helps anyone who ends up in this situation.&lt;/p&gt;</description></item><item><title>Re: Error with double decimal Calculated Values</title><link>https://www.infopathdev.com:443/forums/thread/90569.aspx</link><pubDate>Mon, 10 Jun 2013 23:54:57 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:90569</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/90569.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=90569</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;The only decimal related calc&amp;#39;d value issue I&amp;#39;ve had was because IPFS and Filler use a different scale (one uses 15, the other 16) and it was causing me issues in a signed section - that said, I don&amp;#39;t usually work with data bound forms. I&amp;#39;ve not run into formulas behaving inconsistently, which is what is sounds like you are saying is happening for you.&lt;/p&gt;</description></item><item><title>Re: Error with double decimal Calculated Values</title><link>https://www.infopathdev.com:443/forums/thread/90568.aspx</link><pubDate>Mon, 10 Jun 2013 23:48:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:90568</guid><dc:creator>CCBSMF</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/90568.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=90568</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Will do, Thank you. &lt;/p&gt;&lt;p&gt;We would very much prefer you if you could. &lt;/p&gt;&lt;p&gt;Have you ever, or anyone else who is viewing this, had an issue like this before with calculated values? Are there any other type of rounding formulas that I haven&amp;#39;t tried using? &lt;/p&gt;</description></item><item><title>Re: Error with double decimal Calculated Values</title><link>https://www.infopathdev.com:443/forums/thread/90567.aspx</link><pubDate>Mon, 10 Jun 2013 22:56:10 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:90567</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/90567.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=90567</wfw:commentRss><description>&lt;p&gt;You can email Support AT Qdabra DOT com to schedule time with a Qdabra resource to take a look at the problem (it may not be directly with me, but we have a lot of other knowledgeable InfoPath resources who can help you out).&lt;/p&gt;</description></item><item><title>Re: Error with double decimal Calculated Values</title><link>https://www.infopathdev.com:443/forums/thread/90565.aspx</link><pubDate>Mon, 10 Jun 2013 22:42:49 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:90565</guid><dc:creator>CCBSMF</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/90565.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=90565</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hey Hilary,&lt;/p&gt;&lt;p&gt;Just spoke with my boss and he says we have some more hours to spend with your team. Would you like to schedule a conference and you can look over my shoulder? Would that help so you can get a better feel for what&amp;#39;s going on? &lt;/p&gt;&lt;p&gt;I tried putting up the screenshots. I couldn&amp;#39;t get them uploaded. Perhaps im doing it wrong. &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Error with double decimal Calculated Values</title><link>https://www.infopathdev.com:443/forums/thread/90562.aspx</link><pubDate>Mon, 10 Jun 2013 21:24:33 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:90562</guid><dc:creator>CCBSMF</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/90562.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=90562</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Because the problem isn&amp;#39;t the data, The data is fine, upping the decimal point max wont change the calculated value from coming up with a number that doesn&amp;#39;t exist or&amp;nbsp;from the rounding function not rounding. &lt;/p&gt;&lt;p&gt;if we add 500.00&amp;nbsp;+ 500.20 it will equal 1000.20&lt;/p&gt;&lt;p&gt;but when the calc value does this, it comes up with a&amp;nbsp;sum with a long decimal. ex: 1000.200000000003&lt;/p&gt;&lt;p&gt;Increasing the server side data acceptance will not change the affect xpath is calculating in its floating arithmetic.&amp;nbsp;It will&amp;nbsp;either input bad data into the DB or worse&amp;nbsp;Not round and completely loose money on a&amp;nbsp;daily basis.&amp;nbsp;&lt;/p&gt;&lt;p&gt;I will talk with my partner and see what he says about your advice, Thank you. IF you come up with anything else that may result in my desired solution, please let me know. &lt;/p&gt;</description></item><item><title>Re: Error with double decimal Calculated Values</title><link>https://www.infopathdev.com:443/forums/thread/90558.aspx</link><pubDate>Mon, 10 Jun 2013 21:07:24 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:90558</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/90558.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=90558</wfw:commentRss><description>&lt;p&gt;So, what I&amp;#39;m wondering is - why not change that 9 to a 15? And adjust the 28&amp;nbsp;accordingly, if your numbers are that big. And walk through the data connection again so the form has the updated schema.&amp;nbsp;It just seems simplest?&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Error with double decimal Calculated Values</title><link>https://www.infopathdev.com:443/forums/thread/90554.aspx</link><pubDate>Mon, 10 Jun 2013 19:54:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:90554</guid><dc:creator>CCBSMF</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/90554.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=90554</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;It&amp;#39;s a numeric 28, 9, sorry.. Long day. &lt;/p&gt;</description></item><item><title>Re: Error with double decimal Calculated Values</title><link>https://www.infopathdev.com:443/forums/thread/90552.aspx</link><pubDate>Mon, 10 Jun 2013 19:27:54 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:90552</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/90552.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=90552</wfw:commentRss><description>&lt;p&gt;But if the data type is an int in SQL, you&amp;#39;d need to make sure the value you are submitting has no decimals, right? It looks like everything you&amp;#39;ve tried thus far has 2 digits after the decimal? Sorry, I have a feeling I&amp;#39;m confused. Feel free to attach screenshots under the Options tab.&lt;/p&gt;</description></item><item><title>Re: Error with double decimal Calculated Values</title><link>https://www.infopathdev.com:443/forums/thread/90551.aspx</link><pubDate>Mon, 10 Jun 2013 19:00:09 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:90551</guid><dc:creator>CCBSMF</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/90551.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=90551</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Sorry the Data type is a simpleType. I believe its int in SQL but it comes across as simpleType in InfoPath. It&amp;#39;s all coming across fine and looks great. Its only the calculated value creating a very strange long decimal. That wont adhear to the round function. &lt;/p&gt;</description></item><item><title>Re: Error with double decimal Calculated Values</title><link>https://www.infopathdev.com:443/forums/thread/90550.aspx</link><pubDate>Mon, 10 Jun 2013 18:56:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:90550</guid><dc:creator>CCBSMF</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/90550.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=90550</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Its not a data issue, It allows 9 decimals the data comes out of SQL fine. It&amp;#39;s in the calc value that InfoPath or rather xpath that&amp;nbsp;for some reason is taking a regular number and making a long decimal value..&lt;/p&gt;&lt;p&gt;Ex:&lt;/p&gt;&lt;p&gt;Sql data = 154.200000000 and 200.290000000&lt;/p&gt;&lt;p&gt;in InfoPath the field data will be fine when we view the xml data(matches the SQL data). but in the Calc Value for the total it will have a trailing long decimal.&amp;nbsp;&amp;nbsp; Total = 354.490000002&lt;/p&gt;&lt;p&gt;I thought maybe by rounding the field values containing the obtained SQL data&amp;nbsp; it would affect the calc value. (Failed)&lt;/p&gt;&lt;p&gt;I thought maybe rounding the calc value.( Failed)&lt;/p&gt;&lt;p&gt;I thought maybe converting to string&amp;nbsp; to truncate the decimal to a double decimal but the calc value STILL makes up a long decimal. I know its the calc value creating the problem. But I don&amp;#39;t know how to fix it. It&amp;#39;s only addition. If we were multiplying I could understand how it would extrapolate a long decimal value. Have you ever had this issue before?&lt;/p&gt;&lt;p&gt;Thank you Hilary.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Error with double decimal Calculated Values</title><link>https://www.infopathdev.com:443/forums/thread/90546.aspx</link><pubDate>Mon, 10 Jun 2013 18:39:05 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:90546</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/90546.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=90546</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Euw - got it - what&amp;#39;s the data type in SQL? Can it be changed to allow more decimals?&lt;/p&gt;</description></item><item><title>Re: Error with double decimal Calculated Values</title><link>https://www.infopathdev.com:443/forums/thread/90545.aspx</link><pubDate>Mon, 10 Jun 2013 17:58:51 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:90545</guid><dc:creator>CCBSMF</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/90545.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=90545</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;No, unfortunately it does not. Since the formatting is only at face value it still throws a validation error. This is a sql integration data form. The budget changes occur in the form and are then put back into the server. &lt;/p&gt;&lt;p&gt;Knowing this, Everytime we try a submit of data back to the server it throws a validation error in InfoPath. &lt;/p&gt;&lt;p&gt;In example we will take two fields and add them together:&lt;/p&gt;&lt;p&gt;o_labour = 250.05&amp;nbsp; +&amp;nbsp; o_expense = 250.10&lt;/p&gt;&lt;p&gt;calc_value(Total) = 500.150000000004&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;That is about the jist of what&amp;#39;s occurring. I have screenshots if you want me to email them to you. Just let me know, I believe I still have your email. &lt;/p&gt;</description></item></channel></rss>