<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>KB-1426 Unexpected results on decimal calculations and rounding</title><link>https://community.appian.com/support/w/kb/707/kb-1426-unexpected-results-on-decimal-calculations-and-rounding</link><description /><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>KB-1426 Unexpected results on decimal calculations and rounding</title><link>https://community.appian.com/support/w/kb/707/kb-1426-unexpected-results-on-decimal-calculations-and-rounding</link><pubDate>Tue, 12 Dec 2017 18:53:21 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:cf972534-c5d8-4039-8cd1-8caad49e7896</guid><dc:creator>Parmida Borhani</dc:creator><comments>https://community.appian.com/support/w/kb/707/kb-1426-unexpected-results-on-decimal-calculations-and-rounding#comments</comments><description>Current Revision posted to Appian Knowledge Base by Parmida Borhani on 12/12/2017 6:53:21 PM&lt;br /&gt;
&lt;h2&gt;Symptom&lt;/h2&gt;
&lt;p&gt;Designers will sometimes receive unexpected rounding/results for calculations involving decimals. See some examples below:&lt;/p&gt;
&lt;pre&gt;&lt;strong&gt;Observed:&lt;/strong&gt; 92000 - (7000.27 + 73000.27 + 2000.33 + 9999.13) = -1.455192e-011&lt;br /&gt;&lt;strong&gt;Expected:&lt;/strong&gt;&amp;nbsp;92000 - (7000.27 + 73000.27 + 2000.33 + 9999.13) = 0&lt;/pre&gt;
&lt;pre&gt;&lt;strong&gt;Observed:&lt;/strong&gt;&amp;nbsp;round(123/240*100,1) =&amp;nbsp;15.2&lt;br /&gt;&lt;strong&gt;Expected:&lt;/strong&gt; round(123/240*100,1) = 15.3 since the result is actually 15.25&lt;/pre&gt;
&lt;pre&gt;&lt;strong&gt;Observed:&lt;/strong&gt; fixed(8192.80*100,0,true()) = 819279&lt;br /&gt;&lt;strong&gt;Expected:&lt;/strong&gt; fixed(8192.80*100,0,true()) = 819280&lt;/pre&gt;
&lt;pre&gt;&lt;strong&gt;Observed: &lt;/strong&gt;text(1.9999999999999, &amp;quot;0.00&amp;quot;) = 2.00&lt;br /&gt;&lt;strong&gt;Expected: &lt;/strong&gt;text(1.9999999999999, &amp;quot;0.00&amp;quot;) = 1.99&lt;/pre&gt;
&lt;pre&gt;&lt;strong&gt;Observed:&lt;/strong&gt;&amp;nbsp;a!textField(value:12.236319) =&amp;nbsp;12.23632&lt;br /&gt;&lt;strong&gt;Expected:&lt;/strong&gt;&amp;nbsp;a!textField(value:12.236319) =&amp;nbsp;12.236319&lt;/pre&gt;
&lt;h2&gt;Cause&lt;/h2&gt;
&lt;p&gt;This is not a bug with Appian, but it is rather a&amp;nbsp;limitation of the IEEE 754 standard. The &lt;a href="https://docs.appian.com/suite/help/latest/Appian_Data_Types.html#number-(decimal)"&gt;Appian Data Type &amp;#39;Number (Decimal)&amp;#39;&lt;/a&gt; is stored as double precision floating-point decimal, which is a 64-bit IEEE 754 floating point. There is no such thing as perfect precision with double floating point numbers since base 10 numbers&amp;nbsp;are being represented as base 2 numbers.&amp;nbsp;&lt;/p&gt;
&lt;h2&gt;Workaround&lt;/h2&gt;
&lt;p&gt;Depending on the calculation, there could be various workarounds to attempt.&lt;/p&gt;
&lt;p&gt;If you are seeing unexpected rounding with the &lt;strong&gt;round()&lt;/strong&gt; function,&amp;nbsp;try rounding with more digits of precision or try using the &lt;strong&gt;roundup()&lt;/strong&gt; or &lt;strong&gt;rounddown()&lt;/strong&gt; functions. For the above example,&lt;/p&gt;
&lt;pre&gt;round(123/240*100,6) = 15.25&lt;br /&gt;roundup(123/240*100,1) = 15.3&lt;/pre&gt;
&lt;p&gt;If&amp;nbsp;a decimal calculation using the &lt;strong&gt;fixed()&lt;/strong&gt; function is&amp;nbsp;providing unexpected results, try using&amp;nbsp;&lt;strong&gt;round()&lt;/strong&gt; in conjunction with &lt;strong&gt;fixed()&lt;/strong&gt;. For the above example,&lt;/p&gt;
&lt;pre&gt;fixed(round(8192.80*100),0,true()) = 819280&lt;/pre&gt;
&lt;p&gt;If the &lt;strong&gt;text()&lt;/strong&gt; function seems to incorrectly round a number, try using less digits after the decimal point. For the above example,&lt;/p&gt;
&lt;pre&gt;text(1.9999, &amp;quot;0.00&amp;quot;) = 1.99&lt;/pre&gt;
&lt;p&gt;If the Text Component is rounding a decimal rule input, try wrapping the &lt;strong&gt;fixed()&lt;/strong&gt; function to indicate the desired number of digits after the decimal to be maintained. For the above example,&lt;/p&gt;
&lt;pre&gt;a!textField(value: fixed(12.236319,6) = 12.236319&lt;/pre&gt;
&lt;p&gt;There is a &lt;a href="https://docs.appian.com/suite/help/latest/Floating_Point_Component.html"&gt;Decimal (Floating Point) Component&lt;/a&gt;&amp;nbsp;that can be used.&lt;/p&gt;
&lt;h2&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian.&lt;/p&gt;
&lt;p&gt;Last Reviewed: December 2017&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: known issues, SAIL, application design&lt;/div&gt;
</description></item><item><title>KB-1426 Unexpected results on decimal calculations and rounding</title><link>https://community.appian.com/support/w/kb/707/kb-1426-unexpected-results-on-decimal-calculations-and-rounding/revision/21</link><pubDate>Tue, 12 Dec 2017 18:49:21 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:cf972534-c5d8-4039-8cd1-8caad49e7896</guid><dc:creator>Parmida Borhani</dc:creator><comments>https://community.appian.com/support/w/kb/707/kb-1426-unexpected-results-on-decimal-calculations-and-rounding#comments</comments><description>Revision 21 posted to Appian Knowledge Base by Parmida Borhani on 12/12/2017 6:49:21 PM&lt;br /&gt;
&lt;h2&gt;Symptom&lt;/h2&gt;
&lt;p&gt;Designers will sometimes receive unexpected rounding/results for calculations involving decimals. See some examples below:&lt;/p&gt;
&lt;pre&gt;&lt;strong&gt;Observed:&lt;/strong&gt; 92000 - (7000.27 + 73000.27 + 2000.33 + 9999.13) = -1.455192e-011&lt;br /&gt;&lt;strong&gt;Expected:&lt;/strong&gt;&amp;nbsp;92000 - (7000.27 + 73000.27 + 2000.33 + 9999.13) = 0&lt;/pre&gt;
&lt;pre&gt;&lt;strong&gt;Observed:&lt;/strong&gt;&amp;nbsp;round(123/240*100,1) =&amp;nbsp;15.2&lt;br /&gt;&lt;strong&gt;Expected:&lt;/strong&gt; round(123/240*100,1) = 15.3 since the result is actually 15.25&lt;/pre&gt;
&lt;pre&gt;&lt;strong&gt;Observed:&lt;/strong&gt; fixed(8192.80*100,0,true()) = 819279&lt;br /&gt;&lt;strong&gt;Expected:&lt;/strong&gt; fixed(8192.80*100,0,true()) = 819280&lt;/pre&gt;
&lt;pre&gt;&lt;strong&gt;Observed: &lt;/strong&gt;text(1.9999999999999, &amp;quot;0.00&amp;quot;) = 2.00&lt;br /&gt;&lt;strong&gt;Expected: &lt;/strong&gt;text(1.9999999999999, &amp;quot;0.00&amp;quot;) = 1.99&lt;/pre&gt;
&lt;pre&gt;&lt;strong&gt;Observed:&lt;/strong&gt;&amp;nbsp;a!textField(value:12.236319) =&amp;nbsp;12.23632&lt;br /&gt;&lt;strong&gt;Expected:&lt;/strong&gt;&amp;nbsp;a!textField(value:12.236319) =&amp;nbsp;12.236319&lt;/pre&gt;
&lt;h2&gt;Cause&lt;/h2&gt;
&lt;p&gt;This is not a bug with Appian, but it is rather a&amp;nbsp;limitation of the IEEE 754 standard. The &lt;a href="https://docs.appian.com/suite/help/latest/Appian_Data_Types.html#number-(decimal)"&gt;Appian Data Type &amp;#39;Number (Decimal)&amp;#39;&lt;/a&gt; is stored as double precision floating-point decimal, which is a 64-bit IEEE 754 floating point. There is no such thing as perfect precision with double floating point numbers since base 10 numbers&amp;nbsp;are being represented as base 2 numbers.&amp;nbsp;&lt;/p&gt;
&lt;h2&gt;Workaround&lt;/h2&gt;
&lt;p&gt;Depending on the calculation, there could be various workarounds to attempt.&lt;/p&gt;
&lt;p&gt;If you are seeing unexpected rounding with the &lt;strong&gt;round()&lt;/strong&gt; function,&amp;nbsp;try rounding with more digits of precision or try using the &lt;strong&gt;roundup()&lt;/strong&gt; or &lt;strong&gt;rounddown()&lt;/strong&gt; functions. For the above example,&lt;/p&gt;
&lt;pre&gt;round(123/240*100,6) = 15.25&lt;br /&gt;roundup(123/240*100,1) = 15.3&lt;/pre&gt;
&lt;p&gt;If&amp;nbsp;a decimal calculation using the &lt;strong&gt;fixed()&lt;/strong&gt; function is&amp;nbsp;providing unexpected results, try using&amp;nbsp;&lt;strong&gt;round()&lt;/strong&gt; in conjunction with &lt;strong&gt;fixed()&lt;/strong&gt;. For the above example,&lt;/p&gt;
&lt;pre&gt;fixed(round(8192.80*100),0,true()) = 819280&lt;/pre&gt;
&lt;p&gt;If the &lt;strong&gt;text()&lt;/strong&gt; function seems to incorrectly round a number, try using less digits after the decimal point. For the above example,&lt;/p&gt;
&lt;pre&gt;text(1.9999, &amp;quot;0.00&amp;quot;) = 1.99&lt;/pre&gt;
&lt;p&gt;If the Text Component is rounding a decimal rule input, try wrapping the &lt;strong&gt;fixed()&lt;/strong&gt; function to indicate the desired number of digits after the decimal to be maintained. For the above example,&lt;/p&gt;
&lt;pre&gt;a!textField(value: fixed(12.236319,6) = 12.236319&lt;/pre&gt;
&lt;p&gt;There is a &lt;a href="https://docs.appian.com/suite/help/latest/Floating_Point_Component.html"&gt;Decimal (Floating Point) Component&lt;/a&gt;&amp;nbsp;that can be used.&lt;/p&gt;
&lt;h2&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian.&lt;/p&gt;
&lt;p&gt;Last Reviewed: December 2017&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: known issues&lt;/div&gt;
</description></item><item><title>KB-1426 Unexpected results on decimal calculations and rounding</title><link>https://community.appian.com/support/w/kb/707/kb-1426-unexpected-results-on-decimal-calculations-and-rounding/revision/20</link><pubDate>Tue, 12 Dec 2017 18:48:15 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:cf972534-c5d8-4039-8cd1-8caad49e7896</guid><dc:creator>Parmida Borhani</dc:creator><comments>https://community.appian.com/support/w/kb/707/kb-1426-unexpected-results-on-decimal-calculations-and-rounding#comments</comments><description>Revision 20 posted to Appian Knowledge Base by Parmida Borhani on 12/12/2017 6:48:15 PM&lt;br /&gt;
&lt;h2&gt;Symptom&lt;/h2&gt;
&lt;p&gt;Designers will sometimes receive unexpected results for calculations involving decimals. See some examples below:&lt;/p&gt;
&lt;pre&gt;&lt;strong&gt;Observed:&lt;/strong&gt; 92000 - (7000.27 + 73000.27 + 2000.33 + 9999.13) = -1.455192e-011&lt;br /&gt;&lt;strong&gt;Expected:&lt;/strong&gt;&amp;nbsp;92000 - (7000.27 + 73000.27 + 2000.33 + 9999.13) = 0&lt;/pre&gt;
&lt;pre&gt;&lt;strong&gt;Observed:&lt;/strong&gt;&amp;nbsp;round(123/240*100,1) =&amp;nbsp;15.2&lt;br /&gt;&lt;strong&gt;Expected:&lt;/strong&gt; round(123/240*100,1) = 15.3 since the result is actually 15.25&lt;/pre&gt;
&lt;pre&gt;&lt;strong&gt;Observed:&lt;/strong&gt; fixed(8192.80*100,0,true()) = 819279&lt;br /&gt;&lt;strong&gt;Expected:&lt;/strong&gt; fixed(8192.80*100,0,true()) = 819280&lt;/pre&gt;
&lt;pre&gt;&lt;strong&gt;Observed: &lt;/strong&gt;text(1.9999999999999, &amp;quot;0.00&amp;quot;) = 2.00&lt;br /&gt;&lt;strong&gt;Expected: &lt;/strong&gt;text(1.9999999999999, &amp;quot;0.00&amp;quot;) = 1.99&lt;/pre&gt;
&lt;pre&gt;&lt;strong&gt;Observed:&lt;/strong&gt;&amp;nbsp;a!textField(value: 12.236319) =&amp;nbsp;12.23632&lt;br /&gt;&lt;strong&gt;Expected:&lt;/strong&gt;&amp;nbsp;a!textField(value: 12.236319) =&amp;nbsp;12.236319&lt;/pre&gt;
&lt;h2&gt;Cause&lt;/h2&gt;
&lt;p&gt;This is not a bug with Appian, but it is rather a&amp;nbsp;limitation of the IEEE 754 standard. The &lt;a href="https://docs.appian.com/suite/help/latest/Appian_Data_Types.html#number-(decimal)"&gt;Appian Data Type &amp;#39;Number (Decimal)&amp;#39;&lt;/a&gt; is stored as double precision floating-point decimal, which is a 64-bit IEEE 754 floating point. There is no such thing as perfect precision with double floating point numbers since base 10 numbers&amp;nbsp;are being represented as base 2 numbers.&amp;nbsp;&lt;/p&gt;
&lt;h2&gt;Workaround&lt;/h2&gt;
&lt;p&gt;Depending on the calculation, there could be various workarounds to attempt.&lt;/p&gt;
&lt;p&gt;If you are seeing unexpected rounding with the &lt;strong&gt;round()&lt;/strong&gt; function,&amp;nbsp;try rounding with more digits of precision or try using the &lt;strong&gt;roundup()&lt;/strong&gt; or &lt;strong&gt;rounddown()&lt;/strong&gt; functions. For the above example,&lt;/p&gt;
&lt;pre&gt;round(123/240*100,6) = 15.25&lt;br /&gt;roundup(123/240*100,1) = 15.3&lt;/pre&gt;
&lt;p&gt;If&amp;nbsp;a decimal calculation using the &lt;strong&gt;fixed()&lt;/strong&gt; function is&amp;nbsp;providing unexpected results, try using&amp;nbsp;&lt;strong&gt;round()&lt;/strong&gt; in conjunction with &lt;strong&gt;fixed()&lt;/strong&gt;. For the above example,&lt;/p&gt;
&lt;pre&gt;fixed(round(8192.80*100),0,true()) = 819280&lt;/pre&gt;
&lt;p&gt;If the &lt;strong&gt;text()&lt;/strong&gt; function seems to incorrectly round a number, try using less digits after the decimal point. For the above example,&lt;/p&gt;
&lt;pre&gt;text(1.9999, &amp;quot;0.00&amp;quot;) = 1.99&lt;/pre&gt;
&lt;p&gt;If the Text Component is rounding a decimal rule input, try wrapping the &lt;strong&gt;fixed()&lt;/strong&gt; function to indicate the desired number of digits after the decimal to be maintained. For the above example,&lt;/p&gt;
&lt;pre&gt;a!textField(value: fixed(12.236319,6) = 12.236319&lt;/pre&gt;
&lt;p&gt;There is a &lt;a href="https://docs.appian.com/suite/help/latest/Floating_Point_Component.html"&gt;Decimal (Floating Point) Component&lt;/a&gt;&amp;nbsp;that can be used.&lt;/p&gt;
&lt;h2&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian.&lt;/p&gt;
&lt;p&gt;Last Reviewed: December 2017&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: known issues&lt;/div&gt;
</description></item><item><title>KB-1426 Unexpected results on decimal calculations and rounding</title><link>https://community.appian.com/support/w/kb/707/kb-1426-unexpected-results-on-decimal-calculations-and-rounding/revision/19</link><pubDate>Tue, 12 Dec 2017 18:34:45 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:cf972534-c5d8-4039-8cd1-8caad49e7896</guid><dc:creator>Parmida Borhani</dc:creator><comments>https://community.appian.com/support/w/kb/707/kb-1426-unexpected-results-on-decimal-calculations-and-rounding#comments</comments><description>Revision 19 posted to Appian Knowledge Base by Parmida Borhani on 12/12/2017 6:34:45 PM&lt;br /&gt;
&lt;h2&gt;Symptom&lt;/h2&gt;
&lt;p&gt;Designers will sometimes receive unexpected results for calculations involving decimals. See some examples below:&lt;/p&gt;
&lt;pre&gt;&lt;strong&gt;Observed:&lt;/strong&gt; 92000 - (7000.27 + 73000.27 + 2000.33 + 9999.13) = -1.455192e-011&lt;br /&gt;&lt;strong&gt;Expected:&lt;/strong&gt;&amp;nbsp;92000 - (7000.27 + 73000.27 + 2000.33 + 9999.13) = 0&lt;/pre&gt;
&lt;pre&gt;&lt;strong&gt;Observed:&lt;/strong&gt;&amp;nbsp;round(123/240*100,1) =&amp;nbsp;15.2&lt;br /&gt;&lt;strong&gt;Expected:&lt;/strong&gt; round(123/240*100,1) = 15.3 since the result is actually 15.25&lt;/pre&gt;
&lt;pre&gt;&lt;strong&gt;Observed:&lt;/strong&gt; fixed(8192.80*100,0,true()) = 819279&lt;br /&gt;&lt;strong&gt;Expected:&lt;/strong&gt; fixed(8192.80*100,0,true()) = 819280&lt;/pre&gt;
&lt;pre&gt;&lt;strong&gt;Observed: &lt;/strong&gt;text(1.9999999999999, &amp;quot;0.00&amp;quot;) = 2.00&lt;br /&gt;&lt;strong&gt;Expected: &lt;/strong&gt;text(1.9999999999999, &amp;quot;0.00&amp;quot;) = 1.99&lt;/pre&gt;
&lt;h2&gt;Cause&lt;/h2&gt;
&lt;p&gt;This is not a bug with Appian, but it is rather a&amp;nbsp;limitation of the IEEE 754 standard. The &lt;a href="https://docs.appian.com/suite/help/latest/Appian_Data_Types.html#number-(decimal)"&gt;Appian Data Type &amp;#39;Number (Decimal)&amp;#39;&lt;/a&gt; is stored as double precision floating-point decimal, which is a 64-bit IEEE 754 floating point. There is no such thing as perfect precision with double floating point numbers since base 10 numbers&amp;nbsp;are being represented as base 2 numbers.&amp;nbsp;&lt;/p&gt;
&lt;h2&gt;Workaround&lt;/h2&gt;
&lt;p&gt;Depending on the calculation, there could be various workarounds to attempt.&lt;/p&gt;
&lt;p&gt;If you are seeing unexpected rounding with the &lt;strong&gt;round()&lt;/strong&gt; function,&amp;nbsp;try rounding with more digits of precision or try using the &lt;strong&gt;roundup()&lt;/strong&gt; or &lt;strong&gt;rounddown()&lt;/strong&gt; functions. For the above example,&lt;/p&gt;
&lt;pre&gt;round(123/240*100,6) = 15.25&lt;br /&gt;roundup(123/240*100,1) = 15.3&lt;/pre&gt;
&lt;p&gt;If&amp;nbsp;a decimal calculation using the &lt;strong&gt;fixed()&lt;/strong&gt; function is&amp;nbsp;providing unexpected results, try using&amp;nbsp;&lt;strong&gt;round()&lt;/strong&gt; in conjunction with &lt;strong&gt;fixed()&lt;/strong&gt;. For the above example,&lt;/p&gt;
&lt;pre&gt;fixed(round(8192.80*100),0,true()) = 819280&lt;/pre&gt;
&lt;p&gt;If the &lt;strong&gt;text()&lt;/strong&gt; function seems to incorrectly round a number, try using less digits after the decimal point. For the above example,&lt;/p&gt;
&lt;pre&gt;text(1.9999, &amp;quot;0.00&amp;quot;) = 1.99&lt;/pre&gt;
&lt;p&gt;There is a &lt;a href="https://docs.appian.com/suite/help/latest/Floating_Point_Component.html"&gt;Decimal (Floating Point) Component&lt;/a&gt;&amp;nbsp;that can be used as well.&lt;/p&gt;
&lt;h2&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian.&lt;/p&gt;
&lt;p&gt;Last Reviewed: December 2017&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: known issues&lt;/div&gt;
</description></item><item><title>KB-1426 Unexpected results on decimal calculations and rounding</title><link>https://community.appian.com/support/w/kb/707/kb-1426-unexpected-results-on-decimal-calculations-and-rounding/revision/18</link><pubDate>Sun, 10 Dec 2017 23:03:02 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:cf972534-c5d8-4039-8cd1-8caad49e7896</guid><dc:creator>Parmida Borhani</dc:creator><comments>https://community.appian.com/support/w/kb/707/kb-1426-unexpected-results-on-decimal-calculations-and-rounding#comments</comments><description>Revision 18 posted to Appian Knowledge Base by Parmida Borhani on 12/10/2017 11:03:02 PM&lt;br /&gt;
&lt;h2&gt;Symptom&lt;/h2&gt;
&lt;p&gt;Designers will sometimes receive unexpected results for calculations involving decimals. See some examples below:&lt;/p&gt;
&lt;pre&gt;&lt;strong&gt;Observed:&lt;/strong&gt; 92000 - (7000.27 + 73000.27 + 2000.33 + 9999.13) = -1.455192e-011&lt;br /&gt;&lt;strong&gt;Expected:&lt;/strong&gt;&amp;nbsp;92000 - (7000.27 + 73000.27 + 2000.33 + 9999.13) = 0&lt;/pre&gt;
&lt;pre&gt;&lt;strong&gt;Observed:&lt;/strong&gt;&amp;nbsp;round(123/240*100,1) =&amp;nbsp;15.2&lt;br /&gt;&lt;strong&gt;Expected:&lt;/strong&gt; round(123/240*100,1) = 15.3 since the result is actually 15.25&lt;/pre&gt;
&lt;pre&gt;&lt;strong&gt;Observed:&lt;/strong&gt; fixed(8192.80*100,0,true()) = 819279&lt;br /&gt;&lt;strong&gt;Expected:&lt;/strong&gt; fixed(8192.80*100,0,true()) = 819280&lt;/pre&gt;
&lt;pre&gt;&lt;strong&gt;Observed: &lt;/strong&gt;text(1.9999999999999, &amp;quot;0.00&amp;quot;) = 2.00&lt;br /&gt;&lt;strong&gt;Expected: &lt;/strong&gt;text(1.9999999999999, &amp;quot;0.00&amp;quot;) = 1.99&lt;/pre&gt;
&lt;h2&gt;Cause&lt;/h2&gt;
&lt;p&gt;This is not a bug with Appian, but it is rather a&amp;nbsp;limitation of the IEEE 754 standard. The &lt;a href="https://docs.appian.com/suite/help/latest/Appian_Data_Types.html#number-(decimal)"&gt;Appian Data Type &amp;#39;Number (Decimal)&amp;#39;&lt;/a&gt; is stored as double precision floating-point decimal, which is a 64-bit IEEE 754 floating point. There is no such thing as perfect precision with double floating point numbers since base 10 numbers&amp;nbsp;are being represented as base 2 numbers.&amp;nbsp;&lt;/p&gt;
&lt;h2&gt;Workaround&lt;/h2&gt;
&lt;p&gt;Depending on the calculation, there could be various workarounds to attempt.&lt;/p&gt;
&lt;p&gt;If you are seeing unexpected rounding with the &lt;strong&gt;round()&lt;/strong&gt; function,&amp;nbsp;try rounding with more digits of precision or try using the &lt;strong&gt;roundup()&lt;/strong&gt; or &lt;strong&gt;rounddown()&lt;/strong&gt; functions. For the above example,&lt;/p&gt;
&lt;pre&gt;round(123/240*100,6) = 15.25&lt;br /&gt;roundup(123/240*100,1) = 15.3&lt;/pre&gt;
&lt;p&gt;If&amp;nbsp;a decimal calculation using the &lt;strong&gt;fixed()&lt;/strong&gt; function is&amp;nbsp;providing unexpected results, try using&amp;nbsp;&lt;strong&gt;round()&lt;/strong&gt; in conjunction with &lt;strong&gt;fixed()&lt;/strong&gt;. For the above example,&lt;/p&gt;
&lt;pre&gt;fixed(round(8192.80*100),0,true()) = 819280&lt;/pre&gt;
&lt;p&gt;If the &lt;strong&gt;text()&lt;/strong&gt; function seems to incorrectly round a number, try using less digits of precision after the decimal point. For the above example,&lt;/p&gt;
&lt;pre&gt;text(1.9999, &amp;quot;0.00&amp;quot;) = 1.99&lt;/pre&gt;
&lt;p&gt;There is a &lt;a href="https://docs.appian.com/suite/help/latest/Floating_Point_Component.html"&gt;Decimal (Floating Point) Component&lt;/a&gt;&amp;nbsp;that can be used as well.&lt;/p&gt;
&lt;h2&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian.&lt;/p&gt;
&lt;p&gt;Last Reviewed: December 2017&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: known issues&lt;/div&gt;
</description></item><item><title>KB-1426 Unexpected results on decimal calculations and rounding</title><link>https://community.appian.com/support/w/kb/707/kb-1426-unexpected-results-on-decimal-calculations-and-rounding/revision/17</link><pubDate>Sun, 10 Dec 2017 22:44:49 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:cf972534-c5d8-4039-8cd1-8caad49e7896</guid><dc:creator>Parmida Borhani</dc:creator><comments>https://community.appian.com/support/w/kb/707/kb-1426-unexpected-results-on-decimal-calculations-and-rounding#comments</comments><description>Revision 17 posted to Appian Knowledge Base by Parmida Borhani on 12/10/2017 10:44:49 PM&lt;br /&gt;
&lt;h2&gt;Symptom&lt;/h2&gt;
&lt;p&gt;Designers will sometimes receive unexpected results for calculations involving decimals. See some examples below:&lt;/p&gt;
&lt;pre&gt;&lt;strong&gt;Observed:&lt;/strong&gt; 92000 - (7000.27 + 73000.27 + 2000.33 + 9999.13) = -1.455192e-011&lt;br /&gt;&lt;strong&gt;Expected:&lt;/strong&gt;&amp;nbsp;92000 - (7000.27 + 73000.27 + 2000.33 + 9999.13) = 0&lt;/pre&gt;
&lt;pre&gt;&lt;strong&gt;Observed:&lt;/strong&gt;&amp;nbsp;round(123/240*100,1) =&amp;nbsp;15.2&lt;br /&gt;&lt;strong&gt;Expected:&lt;/strong&gt; round(123/240*100,1) = 15.3 since the result is actually 15.25&lt;/pre&gt;
&lt;pre&gt;&lt;strong&gt;Observed:&lt;/strong&gt; fixed(8192.80*100,0,true()) = 819279&lt;br /&gt;&lt;strong&gt;Expected:&lt;/strong&gt; fixed(8192.80*100,0,true()) = 819280&lt;/pre&gt;
&lt;pre&gt;&lt;strong&gt;Observed: &lt;/strong&gt;text(1.9999999999999, &amp;quot;0.00&amp;quot;) = 2.00&lt;br /&gt;&lt;strong&gt;Expected: &lt;/strong&gt;text(1.9999999999999, &amp;quot;0.00&amp;quot;) = 1.99&lt;/pre&gt;
&lt;h2&gt;Cause&lt;/h2&gt;
&lt;p&gt;This is not a bug with Appian, but it is rather a&amp;nbsp;limitation of the IEEE 754 standard. The &lt;a href="https://docs.appian.com/suite/help/latest/Appian_Data_Types.html#number-(decimal)"&gt;Appian Data Type &amp;#39;Number (Decimal)&amp;#39;&lt;/a&gt; is stored as double precision floating-point decimal, which is a 64-bit IEEE 754 floating point. There is no such thing as perfect precision with double floating point numbers since base 10 numbers&amp;nbsp;are being represented as base 2 numbers.&amp;nbsp;&lt;/p&gt;
&lt;h2&gt;Workaround&lt;/h2&gt;
&lt;p&gt;Depending on the calculation, there could be various workarounds to attempt.&lt;/p&gt;
&lt;p&gt;If you are seeing unexpected rounding with the &lt;strong&gt;round()&lt;/strong&gt; function,&amp;nbsp;try rounding with more digits of precision or try using the &lt;strong&gt;roundup()&lt;/strong&gt; or &lt;strong&gt;rounddown()&lt;/strong&gt; functions. For the above example,&lt;/p&gt;
&lt;pre&gt;round(123/240*100,6) = 15.25&lt;br /&gt;roundup(123/240*100,1) = 15.3&lt;/pre&gt;
&lt;p&gt;If&amp;nbsp;a decimal calculation using the &lt;strong&gt;fixed()&lt;/strong&gt; function is&amp;nbsp;providing unexpected results, try using&amp;nbsp;&lt;strong&gt;round()&lt;/strong&gt; in conjunction with &lt;strong&gt;fixed()&lt;/strong&gt;. For the above example,&lt;/p&gt;
&lt;pre&gt;fixed(round(8192.80*100),0,true()) = 819280&lt;/pre&gt;
&lt;p&gt;If the &lt;strong&gt;text()&lt;/strong&gt; function seems to incorrectly round a number, try using less digits after the decimal point. For the above example,&lt;/p&gt;
&lt;pre&gt;text(1.9999, &amp;quot;0.00&amp;quot;) = 1.99&lt;/pre&gt;
&lt;p&gt;There is a &lt;a href="https://docs.appian.com/suite/help/latest/Floating_Point_Component.html"&gt;Decimal (Floating Point) Component&lt;/a&gt;&amp;nbsp;that can be used as well.&lt;/p&gt;
&lt;h2&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian.&lt;/p&gt;
&lt;p&gt;Last Reviewed: December 2017&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: known issues&lt;/div&gt;
</description></item><item><title>KB-1426 Unexpected results on decimal calculations</title><link>https://community.appian.com/support/w/kb/707/kb-1426-unexpected-results-on-decimal-calculations-and-rounding/revision/16</link><pubDate>Sun, 10 Dec 2017 22:29:30 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:cf972534-c5d8-4039-8cd1-8caad49e7896</guid><dc:creator>Parmida Borhani</dc:creator><comments>https://community.appian.com/support/w/kb/707/kb-1426-unexpected-results-on-decimal-calculations-and-rounding#comments</comments><description>Revision 16 posted to Appian Knowledge Base by Parmida Borhani on 12/10/2017 10:29:30 PM&lt;br /&gt;
&lt;h2&gt;Symptom&lt;/h2&gt;
&lt;p&gt;Designers will sometimes receive unexpected results for calculations involving decimals. See some examples below:&lt;/p&gt;
&lt;pre&gt;&lt;strong&gt;Observed:&lt;/strong&gt; 92000 - (7000.27 + 73000.27 + 2000.33 + 9999.13) = -1.455192e-011&lt;br /&gt;&lt;strong&gt;Expected:&lt;/strong&gt;&amp;nbsp;92000 - (7000.27 + 73000.27 + 2000.33 + 9999.13) = 0&lt;/pre&gt;
&lt;pre&gt;&lt;strong&gt;Observed:&lt;/strong&gt;&amp;nbsp;round(123/240*100,1) =&amp;nbsp;15.2&lt;br /&gt;&lt;strong&gt;Expected:&lt;/strong&gt; round(123/240*100,1) = 15.3 since the result is actually 15.25&lt;/pre&gt;
&lt;pre&gt;&lt;strong&gt;Observed:&lt;/strong&gt; fixed(8192.80*100,0,true()) = 819279&lt;br /&gt;&lt;strong&gt;Expected:&lt;/strong&gt; fixed(8192.80*100,0,true()) = 819280&lt;/pre&gt;
&lt;pre&gt;&lt;strong&gt;Observed: &lt;/strong&gt;text(1.9999999999999, &amp;quot;0.00&amp;quot;) = 2.00&lt;br /&gt;&lt;strong&gt;Expected: &lt;/strong&gt;text(1.9999999999999, &amp;quot;0.00&amp;quot;) = 1.99&lt;/pre&gt;
&lt;h2&gt;Cause&lt;/h2&gt;
&lt;p&gt;This is not a bug with Appian, but it is rather a&amp;nbsp;limitation of the IEEE 754 standard. The &lt;a href="https://docs.appian.com/suite/help/latest/Appian_Data_Types.html#number-(decimal)"&gt;Appian Data Type &amp;#39;Number (Decimal)&amp;#39;&lt;/a&gt; is stored as double precision floating-point decimal, which is a 64-bit IEEE 754 floating point. There is no such thing as perfect precision with double floating point numbers since base 10 numbers&amp;nbsp;are being represented as base 2 numbers.&amp;nbsp;&lt;/p&gt;
&lt;h2&gt;Workaround&lt;/h2&gt;
&lt;p&gt;Depending on the calculation, there could be various workarounds to attempt.&lt;/p&gt;
&lt;p&gt;If you are seeing unexpected rounding with the &lt;strong&gt;round()&lt;/strong&gt; function,&amp;nbsp;try rounding with more digits of precision or try using the &lt;strong&gt;roundup()&lt;/strong&gt; or &lt;strong&gt;rounddown()&lt;/strong&gt; functions. For the above example,&lt;/p&gt;
&lt;pre&gt;round(123/240*100,6) = 15.25&lt;br /&gt;roundup(123/240*100,1) = 15.3&lt;/pre&gt;
&lt;p&gt;If&amp;nbsp;a decimal calculation using the &lt;strong&gt;fixed()&lt;/strong&gt; function is&amp;nbsp;providing unexpected results, try using&amp;nbsp;&lt;strong&gt;round()&lt;/strong&gt; in conjunction with &lt;strong&gt;fixed()&lt;/strong&gt;. For the above example,&lt;/p&gt;
&lt;pre&gt;fixed(round(8192.80*100),0,true()) = 819280&lt;/pre&gt;
&lt;p&gt;If the &lt;strong&gt;text()&lt;/strong&gt; function seems to incorrectly round a number, try using less digits after the decimal point. For the above example,&lt;/p&gt;
&lt;pre&gt;text(1.9999, &amp;quot;0.00&amp;quot;) = 1.99&lt;/pre&gt;
&lt;p&gt;There is a &lt;a href="https://docs.appian.com/suite/help/latest/Floating_Point_Component.html"&gt;Decimal (Floating Point) Component&lt;/a&gt;&amp;nbsp;that can be used as well.&lt;/p&gt;
&lt;h2&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian.&lt;/p&gt;
&lt;p&gt;Last Reviewed: November 2017&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: known issues&lt;/div&gt;
</description></item><item><title>KB-1426 Unexpected results on decimal calculations</title><link>https://community.appian.com/support/w/kb/707/kb-1426-unexpected-results-on-decimal-calculations-and-rounding/revision/15</link><pubDate>Sun, 10 Dec 2017 22:27:36 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:cf972534-c5d8-4039-8cd1-8caad49e7896</guid><dc:creator>Parmida Borhani</dc:creator><comments>https://community.appian.com/support/w/kb/707/kb-1426-unexpected-results-on-decimal-calculations-and-rounding#comments</comments><description>Revision 15 posted to Appian Knowledge Base by Parmida Borhani on 12/10/2017 10:27:36 PM&lt;br /&gt;
&lt;h2&gt;Symptom&lt;/h2&gt;
&lt;p&gt;Designers will sometimes receive unexpected results for calculations involving decimals. See some examples below:&lt;/p&gt;
&lt;pre&gt;&lt;strong&gt;Observed:&lt;/strong&gt; 92000 - (7000.27 + 73000.27 + 2000.33 + 9999.13) = -1.455192e-011&lt;br /&gt;&lt;strong&gt;Expected:&lt;/strong&gt;&amp;nbsp;92000 - (7000.27 + 73000.27 + 2000.33 + 9999.13) = 0&lt;/pre&gt;
&lt;pre&gt;&lt;strong&gt;Observed:&lt;/strong&gt;&amp;nbsp;round(123/240*100,1) =&amp;nbsp;15.2&lt;br /&gt;&lt;strong&gt;Expected:&lt;/strong&gt; round(123/240*100,1) = 15.3 since the result is actually 15.25&lt;/pre&gt;
&lt;pre&gt;&lt;strong&gt;Observed:&lt;/strong&gt; fixed(8192.80*100,0,true()) = 819279&lt;br /&gt;&lt;strong&gt;Expected:&lt;/strong&gt; fixed(8192.80*100,0,true()) = 819280&lt;/pre&gt;
&lt;pre&gt;&lt;strong&gt;Observed: &lt;/strong&gt;text(1.9999999999999, &amp;quot;0.00&amp;quot;) = 2.00&lt;br /&gt;&lt;strong&gt;Expected: &lt;/strong&gt;text(1.9999999999999, &amp;quot;0.00&amp;quot;) = 1.99&lt;/pre&gt;
&lt;h2&gt;Cause&lt;/h2&gt;
&lt;p&gt;This is not a bug with Appian, but it is rather a&amp;nbsp;limitation of the IEEE 754 standard. The &lt;a href="https://docs.appian.com/suite/help/latest/Appian_Data_Types.html#number-(decimal)"&gt;Appian Data Type &amp;#39;Number (Decimal)&amp;#39;&lt;/a&gt; is stored as double precision floating-point decimal, which is a 64-bit IEEE 754 floating point. There is no such thing as perfect precision with double floating point numbers since base 10 numbers&amp;nbsp;are being represented as base 2 numbers.&amp;nbsp;&lt;/p&gt;
&lt;h2&gt;Workaround&lt;/h2&gt;
&lt;p&gt;Depending on the calculation, there could be various workarounds to attempt.&lt;/p&gt;
&lt;p&gt;If you are seeing unexpected rounding,&amp;nbsp;try rounding with more digits of precision or try using the &lt;strong&gt;roundup()&lt;/strong&gt; or &lt;strong&gt;rounddown()&lt;/strong&gt; functions. For the above example,&lt;/p&gt;
&lt;pre&gt;round(123/240*100,6) = 15.25&lt;br /&gt;roundup(123/240*100,1) = 15.3&lt;/pre&gt;
&lt;p&gt;If the &lt;strong&gt;fixed()&lt;/strong&gt; function is used with a decimal calculation and the results are unexpected, try using&amp;nbsp;&lt;strong&gt;round()&lt;/strong&gt; in conjunction with &lt;strong&gt;fixed()&lt;/strong&gt;. For the above example,&lt;/p&gt;
&lt;pre&gt;fixed(round(8192.80*100),0,true()) = 819280&lt;/pre&gt;
&lt;p&gt;If the &lt;strong&gt;text()&lt;/strong&gt; function seems to incorrectly round a number, try using less numbers after the decimal point. For the above example,&lt;/p&gt;
&lt;pre&gt;text(1.9999, &amp;quot;0.00&amp;quot;) = 1.99&lt;/pre&gt;
&lt;p&gt;There is a &lt;a href="https://docs.appian.com/suite/help/latest/Floating_Point_Component.html"&gt;Decimal (Floating Point) Component&lt;/a&gt;&amp;nbsp;that can be used as well.&lt;/p&gt;
&lt;h2&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian.&lt;/p&gt;
&lt;p&gt;Last Reviewed: November 2017&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: known issues&lt;/div&gt;
</description></item><item><title>KB-1426 Unexpected results on decimal calculations</title><link>https://community.appian.com/support/w/kb/707/kb-1426-unexpected-results-on-decimal-calculations-and-rounding/revision/14</link><pubDate>Sun, 10 Dec 2017 22:24:13 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:cf972534-c5d8-4039-8cd1-8caad49e7896</guid><dc:creator>Parmida Borhani</dc:creator><comments>https://community.appian.com/support/w/kb/707/kb-1426-unexpected-results-on-decimal-calculations-and-rounding#comments</comments><description>Revision 14 posted to Appian Knowledge Base by Parmida Borhani on 12/10/2017 10:24:13 PM&lt;br /&gt;
&lt;h2&gt;Symptom&lt;/h2&gt;
&lt;p&gt;Designers will sometimes receive unexpected results for calculations involving decimals. See some examples below:&lt;/p&gt;
&lt;pre&gt;&lt;strong&gt;Observed:&lt;/strong&gt; 92000 - (7000.27 + 73000.27 + 2000.33 + 9999.13) = -1.455192e-011&lt;br /&gt;&lt;strong&gt;Expected:&lt;/strong&gt;&amp;nbsp;92000 - (7000.27 + 73000.27 + 2000.33 + 9999.13) = 0&lt;/pre&gt;
&lt;pre&gt;&lt;strong&gt;Observed:&lt;/strong&gt;&amp;nbsp;round(123/240*100,1) =&amp;nbsp;15.2&lt;br /&gt;&lt;strong&gt;Expected:&lt;/strong&gt; round(123/240*100,1) = 15.3 since the result is actually 15.25&lt;/pre&gt;
&lt;pre&gt;&lt;strong&gt;Observed:&lt;/strong&gt; fixed(8192.80*100,0,true()) = 819279&lt;br /&gt;&lt;strong&gt;Expected:&lt;/strong&gt; fixed(8192.80*100,0,true()) = 819280&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Observed: &lt;/strong&gt;text(1.9999999999999, &amp;quot;0.00&amp;quot;) = 2.00&lt;br /&gt;&lt;strong&gt;Expected: &lt;/strong&gt;text(1.9999999999999, &amp;quot;0.00&amp;quot;) = 1.99&lt;/pre&gt;
&lt;h2&gt;Cause&lt;/h2&gt;
&lt;p&gt;This is not a bug with Appian, but it is rather a&amp;nbsp;limitation of the IEEE 754 standard. The &lt;a href="https://docs.appian.com/suite/help/latest/Appian_Data_Types.html#number-(decimal)"&gt;Appian Data Type &amp;#39;Number (Decimal)&amp;#39;&lt;/a&gt; is stored as double precision floating-point decimal, which is a 64-bit IEEE 754 floating point. There is no such thing as perfect precision with double floating point numbers since base 10 numbers&amp;nbsp;are being represented as base 2 numbers.&amp;nbsp;&lt;/p&gt;
&lt;h2&gt;Workaround&lt;/h2&gt;
&lt;p&gt;Depending on the calculation, there could be various workarounds to attempt.&lt;/p&gt;
&lt;p&gt;If you are seeing unexpected rounding,&amp;nbsp;try rounding with more digits of precision or try using the &lt;strong&gt;roundup()&lt;/strong&gt; or &lt;strong&gt;rounddown()&lt;/strong&gt; functions. For the above example,&lt;/p&gt;
&lt;pre&gt;round(123/240*100,6) = 15.25&lt;br /&gt;roundup(123/240*100,1) = 15.3&lt;/pre&gt;
&lt;p&gt;If the &lt;strong&gt;fixed()&lt;/strong&gt; function is used with a decimal calculation and the results are unexpected, try using&amp;nbsp;&lt;strong&gt;round()&lt;/strong&gt; in conjunction with &lt;strong&gt;fixed()&lt;/strong&gt;. For the above example,&lt;/p&gt;
&lt;pre&gt;fixed(round(8192.80*100),0,true()) = 819280&lt;/pre&gt;
&lt;p&gt;If the &lt;strong&gt;text()&lt;/strong&gt; function seems to incorrectly round a number, try using less numbers after the decimal point. For the above example,&lt;/p&gt;
&lt;pre&gt;text(1.9999, &amp;quot;0.00&amp;quot;) = 1.99&lt;/pre&gt;
&lt;p&gt;There is a &lt;a href="https://docs.appian.com/suite/help/latest/Floating_Point_Component.html"&gt;Decimal (Floating Point) Component&lt;/a&gt;&amp;nbsp;that can be used as well.&lt;/p&gt;
&lt;h2&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian.&lt;/p&gt;
&lt;p&gt;Last Reviewed: November 2017&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: known issues&lt;/div&gt;
</description></item><item><title>KB-1426 Unexpected results on decimal calculations</title><link>https://community.appian.com/support/w/kb/707/kb-1426-unexpected-results-on-decimal-calculations-and-rounding/revision/13</link><pubDate>Wed, 29 Nov 2017 23:08:54 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:cf972534-c5d8-4039-8cd1-8caad49e7896</guid><dc:creator>Parmida Borhani</dc:creator><comments>https://community.appian.com/support/w/kb/707/kb-1426-unexpected-results-on-decimal-calculations-and-rounding#comments</comments><description>Revision 13 posted to Appian Knowledge Base by Parmida Borhani on 11/29/2017 11:08:54 PM&lt;br /&gt;
&lt;h2&gt;Symptom&lt;/h2&gt;
&lt;p&gt;Designers will sometimes receive unexpected results for calculations involving decimals. See some examples below:&lt;/p&gt;
&lt;pre&gt;&lt;strong&gt;Observed:&lt;/strong&gt; 92000 - (7000.27 + 73000.27 + 2000.33 + 9999.13) = -1.455192e-011&lt;br /&gt;&lt;strong&gt;Expected:&lt;/strong&gt;&amp;nbsp;92000 - (7000.27 + 73000.27 + 2000.33 + 9999.13) = 0&lt;/pre&gt;
&lt;pre&gt;&lt;strong&gt;Observed:&lt;/strong&gt;&amp;nbsp;round(123/240*100,1) =&amp;nbsp;15.2&lt;br /&gt;&lt;strong&gt;Expected:&lt;/strong&gt; round(123/240*100,1) = 15.3 since the result is actually 15.25&lt;/pre&gt;
&lt;pre&gt;&lt;strong&gt;Observed:&lt;/strong&gt; fixed(8192.80*100,0,true()) = 819279&lt;br /&gt;&lt;strong&gt;Expected:&lt;/strong&gt; fixed(8192.80*100,0,true()) = 819280&lt;/pre&gt;
&lt;h2&gt;Cause&lt;/h2&gt;
&lt;p&gt;This is not a bug with Appian, but it is rather a&amp;nbsp;limitation of the IEEE 754 standard. The Appian Data Type &amp;#39;Number (Decimal)&amp;#39; is stored as double precision floating-point decimal, which is a 64-bit IEEE 754 floating point. There is no such thing as perfect precision with double floating point numbers since base 10 numbers&amp;nbsp;are being represented as base 2 numbers.&amp;nbsp;&lt;/p&gt;
&lt;h2&gt;Workaround&lt;/h2&gt;
&lt;p&gt;Depending on the calculation, there could be various workarounds to attempt.&lt;/p&gt;
&lt;p&gt;If you are seeing unexpected rounding,&amp;nbsp;try rounding with more digits of precision or try using the &lt;strong&gt;roundup()&lt;/strong&gt; or &lt;strong&gt;rounddown()&lt;/strong&gt; functions. For the above example,&lt;/p&gt;
&lt;pre&gt;round(123/240*100,6) = 15.25&lt;br /&gt;roundup(123/240*100,1) = 15.3&lt;/pre&gt;
&lt;p&gt;If the &lt;strong&gt;fixed()&lt;/strong&gt; function is used with a decimal calculation and the results are unexpected, try using&amp;nbsp;&lt;strong&gt;round()&lt;/strong&gt; in conjunction with &lt;strong&gt;fixed()&lt;/strong&gt;. For the above example,&lt;/p&gt;
&lt;pre&gt;fixed(round(8192.80*100),0,true()) = 819280&lt;/pre&gt;
&lt;p&gt;There is a &lt;a href="https://docs.appian.com/suite/help/latest/Floating_Point_Component.html"&gt;Decimal (Floating Point) Component&lt;/a&gt;&amp;nbsp;that can be used as well.&lt;/p&gt;
&lt;h2&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian.&lt;/p&gt;
&lt;p&gt;Last Reviewed: November 2017&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: known issues&lt;/div&gt;
</description></item><item><title>KB-1426 Unexpected results on decimal calculations</title><link>https://community.appian.com/support/w/kb/707/kb-1426-unexpected-results-on-decimal-calculations-and-rounding/revision/12</link><pubDate>Tue, 28 Nov 2017 21:13:00 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:cf972534-c5d8-4039-8cd1-8caad49e7896</guid><dc:creator>Parmida Borhani</dc:creator><comments>https://community.appian.com/support/w/kb/707/kb-1426-unexpected-results-on-decimal-calculations-and-rounding#comments</comments><description>Revision 12 posted to Appian Knowledge Base by Parmida Borhani on 11/28/2017 9:13:00 PM&lt;br /&gt;
&lt;h2&gt;Symptom&lt;/h2&gt;
&lt;p&gt;Designers will sometimes receive unexpected results for calculations involving decimals. See some examples below:&lt;/p&gt;
&lt;pre&gt;&lt;strong&gt;Observed:&lt;/strong&gt; 92000 - (7000.27 + 73000.27 + 2000.33 + 9999.13) = -1.455192e-011&lt;br /&gt;&lt;strong&gt;Expected:&lt;/strong&gt;&amp;nbsp;92000 - (7000.27 + 73000.27 + 2000.33 + 9999.13) = 0&lt;/pre&gt;
&lt;pre&gt;&lt;strong&gt;Observed:&lt;/strong&gt;&amp;nbsp;round(123/240*100,1) =&amp;nbsp;15.2&lt;br /&gt;&lt;strong&gt;Expected:&lt;/strong&gt; round(123/240*100,1) = 15.3 since the result is actually 15.25&lt;/pre&gt;
&lt;pre&gt;&lt;strong&gt;Observed:&lt;/strong&gt; fixed(8192.80*100,0,true()) = 819279&lt;br /&gt;&lt;strong&gt;Expected:&lt;/strong&gt; fixed(8192.80*100,0,true()) = 819280&lt;/pre&gt;
&lt;h2&gt;Cause&lt;/h2&gt;
&lt;p&gt;This is not a bug with Appian, but it is rather a&amp;nbsp;limitation of the IEEE 754 standard. The Appian Data Type &amp;#39;Number (Decimal)&amp;#39; is stored as double precision floating-point decimal, which is a 64-bit IEEE 754 floating point. There is no such thing as perfect precision with double floating point numbers since base 10 numbers&amp;nbsp;are being represented as base 2 numbers.&amp;nbsp;&lt;/p&gt;
&lt;h2&gt;Workaround&lt;/h2&gt;
&lt;p&gt;Depending on the calculation, there could be various workarounds to attempt.&lt;/p&gt;
&lt;p&gt;If you are seeing unexpected rounding,&amp;nbsp;try rounding with more digits of precision or try using the &lt;strong&gt;roundup()&lt;/strong&gt; or &lt;strong&gt;rounddown()&lt;/strong&gt; functions. For the above example,&lt;/p&gt;
&lt;pre&gt;round(123/240*100,6) = 15.25&lt;br /&gt;roundup(123/240*100,1) = 15.3&lt;/pre&gt;
&lt;p&gt;If the &lt;strong&gt;fixed()&lt;/strong&gt; function is used with a decimal calculation and the results are unexpected, try using&amp;nbsp;&lt;strong&gt;round()&lt;/strong&gt; in conjunction with &lt;strong&gt;fixed()&lt;/strong&gt;. For the above example,&lt;/p&gt;
&lt;pre&gt;fixed(round(8192.80*100),0,true()) = 819280&lt;/pre&gt;
&lt;p&gt;Support for a true decimal type&amp;nbsp;is on the backlog. There is also a &lt;a href="https://docs.appian.com/suite/help/latest/Floating_Point_Component.html"&gt;Decimal (Floating Point) Component&lt;/a&gt;&amp;nbsp;that can be used currently.&lt;/p&gt;
&lt;h2&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian.&lt;/p&gt;
&lt;p&gt;Last Reviewed: November 2017&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: known issues&lt;/div&gt;
</description></item><item><title>KB-XXXX Unexpected results on decimal calculations</title><link>https://community.appian.com/support/w/kb/707/kb-1426-unexpected-results-on-decimal-calculations-and-rounding/revision/11</link><pubDate>Tue, 28 Nov 2017 21:04:18 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:cf972534-c5d8-4039-8cd1-8caad49e7896</guid><dc:creator>Parmida Borhani</dc:creator><comments>https://community.appian.com/support/w/kb/707/kb-1426-unexpected-results-on-decimal-calculations-and-rounding#comments</comments><description>Revision 11 posted to Appian Knowledge Base by Parmida Borhani on 11/28/2017 9:04:18 PM&lt;br /&gt;
&lt;h2&gt;Symptom&lt;/h2&gt;
&lt;p&gt;Designers will sometimes receive unexpected results for calculations involving decimals. See some examples below:&lt;/p&gt;
&lt;pre&gt;&lt;strong&gt;Observed:&lt;/strong&gt; 92000 - (7000.27 + 73000.27 + 2000.33 + 9999.13) = -1.455192e-011&lt;br /&gt;&lt;strong&gt;Expected:&lt;/strong&gt;&amp;nbsp;92000 - (7000.27 + 73000.27 + 2000.33 + 9999.13) = 0&lt;/pre&gt;
&lt;pre&gt;&lt;strong&gt;Observed:&lt;/strong&gt;&amp;nbsp;round(123/240*100,1) =&amp;nbsp;15.2&lt;br /&gt;&lt;strong&gt;Expected:&lt;/strong&gt; round(123/240*100,1) = 15.3 since the result is actually 15.25&lt;/pre&gt;
&lt;pre&gt;&lt;strong&gt;Observed:&lt;/strong&gt; fixed(8192.80*100,0,true()) = 819279&lt;br /&gt;&lt;strong&gt;Expected:&lt;/strong&gt; fixed(8192.80*100,0,true()) = 819280&lt;/pre&gt;
&lt;h2&gt;Cause&lt;/h2&gt;
&lt;p&gt;This is not a bug with Appian, but it is rather a&amp;nbsp;limitation of the IEEE 754 standard. The Appian Data Type &amp;#39;Number (Decimal)&amp;#39; is stored as double precision floating-point decimal, which is a 64-bit IEEE 754 floating point. There is no such thing as perfect precision with double floating point numbers since base 10 numbers&amp;nbsp;are being represented as base 2 numbers.&amp;nbsp;&lt;/p&gt;
&lt;h2&gt;Workaround&lt;/h2&gt;
&lt;p&gt;Depending on the calculation, there could be various workarounds to attempt.&lt;/p&gt;
&lt;p&gt;If you are seeing unexpected rounding,&amp;nbsp;try rounding with more digits of precision or try using the &lt;strong&gt;roundup()&lt;/strong&gt; or &lt;strong&gt;rounddown()&lt;/strong&gt; functions. For the above example,&lt;/p&gt;
&lt;pre&gt;round(123/240*100,6) = 15.25&lt;br /&gt;roundup(123/240*100,1) = 15.3&lt;/pre&gt;
&lt;p&gt;If the &lt;strong&gt;fixed()&lt;/strong&gt; function is used with a decimal calculation and the results are unexpected, try using&amp;nbsp;&lt;strong&gt;round()&lt;/strong&gt; in conjunction with &lt;strong&gt;fixed()&lt;/strong&gt;. For the above example,&lt;/p&gt;
&lt;pre&gt;fixed(round(8192.80*100),0,true()) = 819280&lt;/pre&gt;
&lt;p&gt;Support for a true decimal type&amp;nbsp;is on the backlog. There is also a &lt;a href="https://docs.appian.com/suite/help/latest/Floating_Point_Component.html"&gt;Decimal (Floating Point) Component&lt;/a&gt;&amp;nbsp;that can be used currently.&lt;/p&gt;
&lt;h2&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian.&lt;/p&gt;
&lt;p&gt;Last Reviewed: November 2017&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: known issues&lt;/div&gt;
</description></item><item><title>KB-XXXX Unexpected results on decimal calculations</title><link>https://community.appian.com/support/w/kb/707/kb-1426-unexpected-results-on-decimal-calculations-and-rounding/revision/10</link><pubDate>Tue, 28 Nov 2017 20:30:57 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:cf972534-c5d8-4039-8cd1-8caad49e7896</guid><dc:creator>Parmida Borhani</dc:creator><comments>https://community.appian.com/support/w/kb/707/kb-1426-unexpected-results-on-decimal-calculations-and-rounding#comments</comments><description>Revision 10 posted to Appian Knowledge Base by Parmida Borhani on 11/28/2017 8:30:57 PM&lt;br /&gt;
&lt;h2&gt;Symptom&lt;/h2&gt;
&lt;p&gt;Designers will sometimes receive unexpected results for calculations involving decimals. See some examples below:&lt;/p&gt;
&lt;pre&gt;Observed: 92000 - (7000.27 + 73000.27 + 2000.33 + 9999.13) = -1.455192e-011&lt;br /&gt;Expected:&amp;nbsp;92000 - (7000.27 + 73000.27 + 2000.33 + 9999.13) = 0&lt;/pre&gt;
&lt;pre&gt;Observed:&amp;nbsp;round(123/240*100,1) =&amp;nbsp;15.2&lt;br /&gt;Expected: round(123/240*100,1) = 15.3 since the result is actually 15.25&lt;/pre&gt;
&lt;pre&gt;Observed: fixed(8192.80*100,0,true()) = 819279&lt;br /&gt;Expected: fixed(8192.80*100,0,true()) = 819280&lt;/pre&gt;
&lt;h2&gt;Cause&lt;/h2&gt;
&lt;p&gt;This is not a bug with Appian, but it is rather a&amp;nbsp;limitation of the IEEE 754 standard. The Appian Data Type &amp;#39;Number (Decimal)&amp;#39; is stored as double precision floating-point decimal, which is a 64-bit IEEE 754 floating point. There is no such thing as perfect precision with double floating point numbers since base 10 numbers&amp;nbsp;are being represented as base 2 numbers.&amp;nbsp;&lt;/p&gt;
&lt;h2&gt;Workaround&lt;/h2&gt;
&lt;p&gt;Depending on the calculation, there could be various workarounds to attempt.&lt;/p&gt;
&lt;p&gt;If you are seeing unexpected rounding,&amp;nbsp;try rounding with more digits of precision or using the &lt;strong&gt;roundup()&lt;/strong&gt; or &lt;strong&gt;rounddown()&lt;/strong&gt; functions. For the above example,&lt;/p&gt;
&lt;pre&gt;round(123/240*100,6) = 15.25&lt;br /&gt;roundup(123/240*100,1) = 15.3&lt;/pre&gt;
&lt;p&gt;If the &lt;strong&gt;fixed()&lt;/strong&gt; function is used with a decimal calculation and the results are unexpected, try using&amp;nbsp;&lt;strong&gt;round()&lt;/strong&gt; in conjunction with &lt;strong&gt;fixed()&lt;/strong&gt;. For the above example,&lt;/p&gt;
&lt;pre&gt;fixed(round(8192.80*100),0,true()) = 819280&lt;/pre&gt;
&lt;p&gt;Support for a true decimal type&amp;nbsp;is on currently on the backlog. There is also a &lt;a href="https://docs.appian.com/suite/help/latest/Floating_Point_Component.html"&gt;Decimal (Floating Point) Component&lt;/a&gt;&amp;nbsp;that can be used currently.&lt;/p&gt;
&lt;h2&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian.&lt;/p&gt;
&lt;p&gt;Last Reviewed: November 2017&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: known issues&lt;/div&gt;
</description></item><item><title>KB-XXXX Unexpected results on decimal calculations</title><link>https://community.appian.com/support/w/kb/707/kb-1426-unexpected-results-on-decimal-calculations-and-rounding/revision/9</link><pubDate>Tue, 28 Nov 2017 20:28:03 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:cf972534-c5d8-4039-8cd1-8caad49e7896</guid><dc:creator>Parmida Borhani</dc:creator><comments>https://community.appian.com/support/w/kb/707/kb-1426-unexpected-results-on-decimal-calculations-and-rounding#comments</comments><description>Revision 9 posted to Appian Knowledge Base by Parmida Borhani on 11/28/2017 8:28:03 PM&lt;br /&gt;
&lt;h2&gt;Symptom&lt;/h2&gt;
&lt;p&gt;Designers will sometimes receive unexpected results for calculations involving decimals. See some examples below:&lt;/p&gt;
&lt;pre&gt;Observed: 92000 - (7000.27 + 73000.27 + 2000.33 + 9999.13) = -1.455192e-011&lt;br /&gt;Expected:&amp;nbsp;92000 - (7000.27 + 73000.27 + 2000.33 + 9999.13) = 0&lt;/pre&gt;
&lt;pre&gt;Observed:&amp;nbsp;round(123/240*100,1) =&amp;nbsp;15.2&lt;br /&gt;Expected: round(123/240*100,1) = 15.3 since the result is actually 15.25&lt;/pre&gt;
&lt;pre&gt;Observed: fixed(8192.80*100,0,true()) = 819279&lt;br /&gt;Expected: fixed(8192.80*100,0,true()) = 819280&lt;/pre&gt;
&lt;h2&gt;Cause&lt;/h2&gt;
&lt;p&gt;This is not a bug with Appian, but it is rather a&amp;nbsp;limitation of the IEEE 754 standard. The Appian Data Type &amp;#39;Number (Decimal)&amp;#39; is stored as double precision floating-point decimal, which is a 64-bit IEEE 754 floating point. There is no such thing as perfect precision with double floating point numbers since base 10 numbers&amp;nbsp;are being represented as base 2 numbers.&amp;nbsp;&lt;/p&gt;
&lt;h2&gt;Workaround&lt;/h2&gt;
&lt;p&gt;Depending on the calculation, there could be various workarounds to attempt.&lt;/p&gt;
&lt;p&gt;If you are seeing unexpected rounding,&amp;nbsp;try rounding with more digits of precision. For the above example,&lt;/p&gt;
&lt;pre&gt;round(123/240*100,6) = 15.25&lt;/pre&gt;
&lt;p&gt;If the fixed() function is used with a decimal calculation and the results are unexpected, try using&amp;nbsp;round() in conjunction with fixed(). For the above example,&lt;/p&gt;
&lt;pre&gt;fixed(round(8192.80*100),0,true()) = 819280&lt;/pre&gt;
&lt;p&gt;This issue is on currently on the backlog.&lt;/p&gt;
&lt;h2&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian.&lt;/p&gt;
&lt;p&gt;Last Reviewed: November 2017&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: known issues&lt;/div&gt;
</description></item><item><title>KB-XXXX Unexpected results on decimal calculations</title><link>https://community.appian.com/support/w/kb/707/kb-1426-unexpected-results-on-decimal-calculations-and-rounding/revision/8</link><pubDate>Tue, 28 Nov 2017 20:19:52 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:cf972534-c5d8-4039-8cd1-8caad49e7896</guid><dc:creator>Parmida Borhani</dc:creator><comments>https://community.appian.com/support/w/kb/707/kb-1426-unexpected-results-on-decimal-calculations-and-rounding#comments</comments><description>Revision 8 posted to Appian Knowledge Base by Parmida Borhani on 11/28/2017 8:19:52 PM&lt;br /&gt;
&lt;h2&gt;Symptom&lt;/h2&gt;
&lt;p&gt;Designers will sometimes receive unexpected results for calculations involving decimals. See some examples below:&lt;/p&gt;
&lt;pre&gt;Observed: 92000 - (7000.27 + 73000.27 + 2000.33 + 9999.13) = -1.455192e-011&lt;br /&gt;Expected:&amp;nbsp;92000 - (7000.27 + 73000.27 + 2000.33 + 9999.13) = 0&lt;/pre&gt;
&lt;pre&gt;Observed:&amp;nbsp;round(123/240*100,1) =&amp;nbsp;15.2&lt;br /&gt;Expected: round(123/240*100,1) = 15.3 since the result is actually 15.25&lt;/pre&gt;
&lt;pre&gt;Observed: fixed(8192.80*100,0,true()) = 819279&lt;br /&gt;Expected: fixed(8192.80*100,0,true()) = 819280&lt;/pre&gt;
&lt;h2&gt;Cause&lt;/h2&gt;
&lt;p&gt;This is not a bug with Appian, but it is rather a&amp;nbsp;limitation of the IEEE 754 standard. The Appian Data Type &amp;#39;Number (Decimal)&amp;#39; is stored as double precision floating-point decimal, which is a 64-bit IEEE 754 floating point. There is no such thing as perfect precision with double floating point numbers since base 10 numbers&amp;nbsp;are being represented as base 2 numbers.&amp;nbsp;&lt;/p&gt;
&lt;h2&gt;Workaround&lt;/h2&gt;
&lt;p&gt;Depending on the calculation, there could be various workarounds to attempt.&lt;/p&gt;
&lt;p&gt;If you are seeing unexpected rounding,&amp;nbsp;try rounding with more digits of precision. For the above example,&lt;/p&gt;
&lt;p&gt;round(123/240*100,6) = 15.25&lt;/p&gt;
&lt;p&gt;If the fixed() function is used with a decimal calculation and the results are unexpected, try using&amp;nbsp;round() in conjunction with fixed(). For the above example,&lt;/p&gt;
&lt;p&gt;fixed(round(8192.80*100),0,true()) = 819280&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;h2&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian.&lt;/p&gt;
&lt;p&gt;Last Reviewed: November 2017&lt;/p&gt;
&lt;p&gt;&lt;a href="https://home.appian.com/suite/tempo/news/entry/b-263387"&gt;https://home.appian.com/suite/tempo/news/entry/b-263387&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://home.appian.com/suite/tempo/news/entry/f-236747"&gt;https://home.appian.com/suite/tempo/news/entry/f-236747&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://forum.appian.com/suite/tempo/news/entry/f-233757"&gt;https://forum.appian.com/suite/tempo/news/entry/f-233757&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;For forms, use one of the following Text Functions to display a decimal number as a default value to avoid rounding.&lt;br /&gt;fixed()&lt;br /&gt;text()&lt;br /&gt;Also for forms, use one of the following currency functions to display a decimal number as a default currency value.&lt;br /&gt;dollar()&lt;br /&gt;euro()&lt;br /&gt;pound()&lt;br /&gt;yen()&lt;br /&gt;currency()&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: known issues&lt;/div&gt;
</description></item><item><title>KB-XXXX Unexpected results on decimal calculations</title><link>https://community.appian.com/support/w/kb/707/kb-1426-unexpected-results-on-decimal-calculations-and-rounding/revision/7</link><pubDate>Tue, 28 Nov 2017 20:15:20 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:cf972534-c5d8-4039-8cd1-8caad49e7896</guid><dc:creator>Parmida Borhani</dc:creator><comments>https://community.appian.com/support/w/kb/707/kb-1426-unexpected-results-on-decimal-calculations-and-rounding#comments</comments><description>Revision 7 posted to Appian Knowledge Base by Parmida Borhani on 11/28/2017 8:15:20 PM&lt;br /&gt;
&lt;h2&gt;Symptom&lt;/h2&gt;
&lt;p&gt;Designers will sometimes receive unexpected results for calculations involving decimals. See some examples below:&lt;/p&gt;
&lt;pre&gt;Observed: 92000 - (7000.27 + 73000.27 + 2000.33 + 9999.13) = -1.455192e-011&lt;br /&gt;Expected:&amp;nbsp;92000 - (7000.27 + 73000.27 + 2000.33 + 9999.13) = 0&lt;/pre&gt;
&lt;pre&gt;Observed:&amp;nbsp;round(123/240*100,1) =&amp;nbsp;15.2&lt;br /&gt;Expected: round(123/240*100,1) = 15.3 since the result is actually 15.25&lt;/pre&gt;
&lt;pre&gt;Observed: fixed(8192.80*100,0,true()) = 819279&lt;br /&gt;Expected: fixed(8192.80*100,0,true()) = 819280&lt;/pre&gt;
&lt;h2&gt;Cause&lt;/h2&gt;
&lt;p&gt;This is not a bug with Appian, but it is rather a&amp;nbsp;limitation of the IEEE 754 standard. The Appian Data Type &amp;#39;Number (Decimal)&amp;#39; is stored as double precision floating-point decimal, which is a 64-bit IEEE 754 floating point. This means that numbers&amp;nbsp;with&amp;nbsp;an infinite number of digits cannot be represented with 100% precision with only 64-bits since base 10 numbers&amp;nbsp;are being represented as base 2.&amp;nbsp;&lt;/p&gt;
&lt;h2&gt;Workaround&lt;/h2&gt;
&lt;p&gt;Depending on the calculation, there could be various workarounds to attempt.&lt;/p&gt;
&lt;p&gt;If you are seeing unexpected rounding,&amp;nbsp;try rounding with more digits of precision. For the above example,&lt;/p&gt;
&lt;p&gt;round(123/240*100,6)&lt;/p&gt;
&lt;p&gt;If the fixed() function is used with a decimal calculation and the results are unexpected, try using&amp;nbsp;round() in conjunction with fixed(). For the above example,&lt;/p&gt;
&lt;p&gt;fixed(round(8192.80*100),0,true())&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://home.appian.com/suite/tempo/news/entry/b-263387"&gt;https://home.appian.com/suite/tempo/news/entry/b-263387&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://home.appian.com/suite/tempo/news/entry/f-236747"&gt;https://home.appian.com/suite/tempo/news/entry/f-236747&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://forum.appian.com/suite/tempo/news/entry/f-233757"&gt;https://forum.appian.com/suite/tempo/news/entry/f-233757&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;For forms, use one of the following Text Functions to display a decimal number as a default value to avoid rounding.&lt;br /&gt;fixed()&lt;br /&gt;text()&lt;br /&gt;Also for forms, use one of the following currency functions to display a decimal number as a default currency value.&lt;br /&gt;dollar()&lt;br /&gt;euro()&lt;br /&gt;pound()&lt;br /&gt;yen()&lt;br /&gt;currency()&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: known issues&lt;/div&gt;
</description></item><item><title>KB-XXXX Unexpected results on decimal calculations</title><link>https://community.appian.com/support/w/kb/707/kb-1426-unexpected-results-on-decimal-calculations-and-rounding/revision/6</link><pubDate>Tue, 28 Nov 2017 20:14:10 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:cf972534-c5d8-4039-8cd1-8caad49e7896</guid><dc:creator>Parmida Borhani</dc:creator><comments>https://community.appian.com/support/w/kb/707/kb-1426-unexpected-results-on-decimal-calculations-and-rounding#comments</comments><description>Revision 6 posted to Appian Knowledge Base by Parmida Borhani on 11/28/2017 8:14:10 PM&lt;br /&gt;
&lt;h2&gt;Symptom&lt;/h2&gt;
&lt;p&gt;Designers will sometimes receive unexpected results for calculations involving decimals. See some examples below:&lt;/p&gt;
&lt;pre&gt;Observed: 92000 - (7000.27 + 73000.27 + 2000.33 + 9999.13) = -1.455192e-011&lt;br /&gt;Expected:&amp;nbsp;92000 - (7000.27 + 73000.27 + 2000.33 + 9999.13) = 0&lt;/pre&gt;
&lt;pre&gt;Observed:&amp;nbsp;round(123/240*100,1) =&amp;nbsp;15.2&lt;br /&gt;Expected: round(123/240*100,1) = 15.3 since the result is actually 15.25&lt;br /&gt;&lt;br /&gt;Observed: fixed(8192.80*100,0,true()) = 819279&lt;br /&gt;Expected: fixed(8192.80*100,0,true()) = 819280&lt;/pre&gt;
&lt;h2&gt;Cause&lt;/h2&gt;
&lt;p&gt;This is not a bug with Appian, but it is rather a&amp;nbsp;limitation of the IEEE 754 standard. The Appian Data Type &amp;#39;Number (Decimal)&amp;#39; is stored as double precision floating-point decimal, which is a 64-bit IEEE 754 floating point. This means that numbers&amp;nbsp;with&amp;nbsp;an infinite number of digits cannot be represented with 100% precision with only 64-bits since base 10 numbers&amp;nbsp;are being represented as base 2.&amp;nbsp;&lt;/p&gt;
&lt;h2&gt;Workaround&lt;/h2&gt;
&lt;p&gt;Depending on the calculation, there could be various workarounds to attempt.&lt;/p&gt;
&lt;p&gt;If you are seeing unexpected rounding,&amp;nbsp;try rounding with more digits of precision. For the above example,&lt;/p&gt;
&lt;p&gt;round(123/240*100,6)&lt;/p&gt;
&lt;p&gt;If the fixed() function is used with a decimal calculation and the results are unexpected, try using&amp;nbsp;round() in conjunction with fixed(). For the above example,&lt;/p&gt;
&lt;p&gt;fixed(round(8192.80*100),0,true())&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://home.appian.com/suite/tempo/news/entry/b-263387"&gt;https://home.appian.com/suite/tempo/news/entry/b-263387&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://home.appian.com/suite/tempo/news/entry/f-236747"&gt;https://home.appian.com/suite/tempo/news/entry/f-236747&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://forum.appian.com/suite/tempo/news/entry/f-233757"&gt;https://forum.appian.com/suite/tempo/news/entry/f-233757&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;For forms, use one of the following Text Functions to display a decimal number as a default value to avoid rounding.&lt;br /&gt;fixed()&lt;br /&gt;text()&lt;br /&gt;Also for forms, use one of the following currency functions to display a decimal number as a default currency value.&lt;br /&gt;dollar()&lt;br /&gt;euro()&lt;br /&gt;pound()&lt;br /&gt;yen()&lt;br /&gt;currency()&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: known issues&lt;/div&gt;
</description></item><item><title>KB-XXXX Unexpected results on decimal calculations</title><link>https://community.appian.com/support/w/kb/707/kb-1426-unexpected-results-on-decimal-calculations-and-rounding/revision/5</link><pubDate>Tue, 28 Nov 2017 20:02:34 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:cf972534-c5d8-4039-8cd1-8caad49e7896</guid><dc:creator>Parmida Borhani</dc:creator><comments>https://community.appian.com/support/w/kb/707/kb-1426-unexpected-results-on-decimal-calculations-and-rounding#comments</comments><description>Revision 5 posted to Appian Knowledge Base by Parmida Borhani on 11/28/2017 8:02:34 PM&lt;br /&gt;
&lt;h2&gt;Symptom&lt;/h2&gt;
&lt;p&gt;Designers will sometimes receive unexpected results for calculations involving decimals. See some examples below:&lt;/p&gt;
&lt;pre&gt;Observed: 92000 - (7000.27 + 73000.27 + 2000.33 + 9999.13) = -1.455192e-011&lt;br /&gt;Expected:&amp;nbsp;92000 - (7000.27 + 73000.27 + 2000.33 + 9999.13) = 0&lt;/pre&gt;
&lt;pre&gt;Observed:&amp;nbsp;round(123/240*100,1) =&amp;nbsp;15.2&lt;br /&gt;Expected: round(123/240*100,1) = 15.3 since the result is actually 15.25&lt;/pre&gt;
&lt;h2&gt;Cause&lt;/h2&gt;
&lt;p&gt;This is not a bug with Appian, but it is rather a&amp;nbsp;limitation of the IEEE 754 standard. The Appian Data Type &amp;#39;Number (Decimal)&amp;#39; is stored as double precision floating-point decimal, which is a 64-bit IEEE 754 floating point. Some numbers have an infinite number of digits and can not be represented with 100% precision with only 64-bits. This is because a base 10 number is being represented as base 2.&amp;nbsp;&lt;/p&gt;
&lt;h2&gt;Workaround&lt;/h2&gt;
&lt;p&gt;fixed() and round()&lt;/p&gt;
&lt;p&gt;&lt;a href="https://home.appian.com/suite/tempo/news/entry/b-263387"&gt;https://home.appian.com/suite/tempo/news/entry/b-263387&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://home.appian.com/suite/tempo/news/entry/f-236747"&gt;https://home.appian.com/suite/tempo/news/entry/f-236747&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://forum.appian.com/suite/tempo/news/entry/f-233757"&gt;https://forum.appian.com/suite/tempo/news/entry/f-233757&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;For forms, use one of the following Text Functions to display a decimal number as a default value to avoid rounding.&lt;br /&gt;fixed()&lt;br /&gt;text()&lt;br /&gt;Also for forms, use one of the following currency functions to display a decimal number as a default currency value.&lt;br /&gt;dollar()&lt;br /&gt;euro()&lt;br /&gt;pound()&lt;br /&gt;yen()&lt;br /&gt;currency()&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: known issues&lt;/div&gt;
</description></item><item><title>KB-XXXX Unexpected results on decimal calculations</title><link>https://community.appian.com/support/w/kb/707/kb-1426-unexpected-results-on-decimal-calculations-and-rounding/revision/4</link><pubDate>Tue, 28 Nov 2017 20:01:53 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:cf972534-c5d8-4039-8cd1-8caad49e7896</guid><dc:creator>Parmida Borhani</dc:creator><comments>https://community.appian.com/support/w/kb/707/kb-1426-unexpected-results-on-decimal-calculations-and-rounding#comments</comments><description>Revision 4 posted to Appian Knowledge Base by Parmida Borhani on 11/28/2017 8:01:53 PM&lt;br /&gt;
&lt;h2&gt;Symptom&lt;/h2&gt;
&lt;p&gt;Designers will sometimes receive unexpected results for calculations involving decimals. See some examples below:&lt;/p&gt;
&lt;pre&gt;Observed: 92000 - (7000.27 + 73000.27 + 2000.33 + 9999.13) = -1.455192e-011&lt;/pre&gt;
&lt;pre&gt;Expected:&amp;nbsp;92000 - (7000.27 + 73000.27 + 2000.33 + 9999.13) = 0&lt;/pre&gt;
&lt;pre&gt;Observed:&amp;nbsp;round(123/240*100,1) =&amp;nbsp;15.2&lt;/pre&gt;
&lt;pre&gt;Expected: round(123/240*100,1) = 15.3 since the result is actually 15.25&lt;/pre&gt;
&lt;h2&gt;Cause&lt;/h2&gt;
&lt;p&gt;This is not a bug with Appian, but it is rather a&amp;nbsp;limitation of the IEEE 754 standard. The Appian Data Type &amp;#39;Number (Decimal)&amp;#39; is stored as double precision floating-point decimal, which is a 64-bit IEEE 754 floating point. Some numbers have an infinite number of digits and can not be represented with 100% precision with only 64-bits. This is because a base 10 number is being represented as base 2.&amp;nbsp;&lt;/p&gt;
&lt;h2&gt;Workaround&lt;/h2&gt;
&lt;p&gt;fixed() and round()&lt;/p&gt;
&lt;p&gt;&lt;a href="https://home.appian.com/suite/tempo/news/entry/b-263387"&gt;https://home.appian.com/suite/tempo/news/entry/b-263387&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://home.appian.com/suite/tempo/news/entry/f-236747"&gt;https://home.appian.com/suite/tempo/news/entry/f-236747&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://forum.appian.com/suite/tempo/news/entry/f-233757"&gt;https://forum.appian.com/suite/tempo/news/entry/f-233757&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;For forms, use one of the following Text Functions to display a decimal number as a default value to avoid rounding.&lt;br /&gt;fixed()&lt;br /&gt;text()&lt;br /&gt;Also for forms, use one of the following currency functions to display a decimal number as a default currency value.&lt;br /&gt;dollar()&lt;br /&gt;euro()&lt;br /&gt;pound()&lt;br /&gt;yen()&lt;br /&gt;currency()&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: known issues&lt;/div&gt;
</description></item><item><title>KB-XXXX Floating Point Arithmetic</title><link>https://community.appian.com/support/w/kb/707/kb-1426-unexpected-results-on-decimal-calculations-and-rounding/revision/1</link><pubDate>Tue, 28 Nov 2017 03:03:56 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:cf972534-c5d8-4039-8cd1-8caad49e7896</guid><dc:creator>Parmida Borhani</dc:creator><comments>https://community.appian.com/support/w/kb/707/kb-1426-unexpected-results-on-decimal-calculations-and-rounding#comments</comments><description>Revision 1 posted to Appian Knowledge Base by Parmida Borhani on 11/28/2017 3:03:56 AM&lt;br /&gt;
&lt;p&gt;Symptom&lt;/p&gt;
&lt;p&gt;Cause&lt;/p&gt;
&lt;p&gt;Workaround&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item><item><title>KB-XXXX Unexpected results on decimal calculations</title><link>https://community.appian.com/support/w/kb/707/kb-1426-unexpected-results-on-decimal-calculations-and-rounding/revision/3</link><pubDate>Tue, 28 Nov 2017 01:02:00 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:cf972534-c5d8-4039-8cd1-8caad49e7896</guid><dc:creator>Parmida Borhani</dc:creator><comments>https://community.appian.com/support/w/kb/707/kb-1426-unexpected-results-on-decimal-calculations-and-rounding#comments</comments><description>Revision 3 posted to Appian Knowledge Base by Parmida Borhani on 11/28/2017 1:02:00 AM&lt;br /&gt;
&lt;h2&gt;Symptom&lt;/h2&gt;
&lt;p&gt;Receiving unexpected results for a calculation involving decimals. See some examples below:&lt;/p&gt;
&lt;p&gt;Observed: 92000 - (7000.27 + 73000.27 + 2000.33 + 9999.13) = -1.455192e-011&lt;/p&gt;
&lt;p&gt;Expected:&amp;nbsp;92000 - (7000.27 + 73000.27 + 2000.33 + 9999.13) = 0&lt;/p&gt;
&lt;p&gt;Observed: round(somefunction) =&amp;nbsp;15.01000000000000000000000001&lt;/p&gt;
&lt;p&gt;Expected: round(somefunction) = 15.01&lt;/p&gt;
&lt;h2&gt;Cause&lt;/h2&gt;
&lt;p&gt;This is not a bug with Appian, but it is rather a&amp;nbsp;limitation of the IEEE 754 standard. The Appian Data Type &amp;#39;Number (Decimal)&amp;#39; is stored as double precision floating-point decimal, which is a 64-bit IEEE 754 floating point. Some numbers have an infinite number of digits and can not be represented with 100% precision with only 64-bits. This is because a base 10 number is being represented as base 2.&amp;nbsp;&lt;/p&gt;
&lt;h2&gt;Workaround&lt;/h2&gt;
&lt;p&gt;fixed() and round()&lt;/p&gt;
&lt;p&gt;&lt;a href="https://home.appian.com/suite/tempo/news/entry/b-263387"&gt;https://home.appian.com/suite/tempo/news/entry/b-263387&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://home.appian.com/suite/tempo/news/entry/f-236747"&gt;https://home.appian.com/suite/tempo/news/entry/f-236747&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://forum.appian.com/suite/tempo/news/entry/f-233757"&gt;https://forum.appian.com/suite/tempo/news/entry/f-233757&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;For forms, use one of the following Text Functions to display a decimal number as a default value to avoid rounding.&lt;br /&gt;fixed()&lt;br /&gt;text()&lt;br /&gt;Also for forms, use one of the following currency functions to display a decimal number as a default currency value.&lt;br /&gt;dollar()&lt;br /&gt;euro()&lt;br /&gt;pound()&lt;br /&gt;yen()&lt;br /&gt;currency()&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: known issues&lt;/div&gt;
</description></item></channel></rss>