<?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/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Valued getting changed to exponential</title><link>https://community.appian.com/discussions/f/user-interface/20221/valued-getting-changed-to-exponential</link><description>I have a Payment screen where lot of calculations are done on the basis of some input and logic. The payment amount can not have more than 2 decimal precision. It is getting handled on UI .But while doing calculation some times values are giving exponential</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Valued getting changed to exponential</title><link>https://community.appian.com/thread/78986?ContentTypeID=1</link><pubDate>Mon, 18 Jan 2021 15:18:03 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:36190f89-d4d3-4d34-b73c-3c7e5876748d</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;Decimals in Appian are known to not be super precise due to hidden decimal rounding issues inherent in Java (iirc).&amp;nbsp; However when I use round() at least in your example above I do get the expected result of zero:&lt;br /&gt;&lt;pre class="ui-code" data-mode="java"&gt;round( todecimal(31914.60) - todecimal(31914.40), 1 )
- 0.2&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/13/pastedimage1610983088213v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Valued getting changed to exponential</title><link>https://community.appian.com/thread/78976?ContentTypeID=1</link><pubDate>Sun, 17 Jan 2021 07:25:19 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e2dc9d98-f7f8-4f13-b06a-5ef80ba172ec</guid><dc:creator>shubhamg0005</dc:creator><description>&lt;p&gt;&lt;br /&gt; todecimal(&lt;br /&gt; 31914.60&lt;br /&gt; ) - todecimal(&lt;br /&gt; 31914.40&lt;br /&gt; )&lt;br /&gt;) - (&lt;br /&gt; 0.2&lt;br /&gt;)&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The above calculation is giving exponential value. Since these values is used further for some calculations and validations So it is getting a break.&lt;/p&gt;
&lt;p&gt;and my requirement is that the value should not be more than 2 decimal precision. So I am using a round function and i also tried with round down function but it is not giving correct value in every case.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Valued getting changed to exponential</title><link>https://community.appian.com/thread/78921?ContentTypeID=1</link><pubDate>Wed, 13 Jan 2021 15:27:26 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e2aec34e-74e3-4b03-817e-e74b505ea6d6</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;Can you provide sample code and any specific examples of inputs, expected results versus actual results?&amp;nbsp; Without this any answers here will mainly be based on blind guessing.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>