<?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>Decimal Calculation</title><link>https://community.appian.com/discussions/f/general/38877/decimal-calculation</link><description>Hello Everyone, 
 We allow users to enter the amounts in the editable grid using the textbox component. (saving these values in the CDT decimal field) 
 And displaying the total amount and validating the total column against other values. 
 Values entered</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Decimal Calculation</title><link>https://community.appian.com/thread/147082?ContentTypeID=1</link><pubDate>Thu, 10 Apr 2025 13:02:13 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:283b43e7-4c79-477a-babe-266dc16d1b39</guid><dc:creator>Mike Schmitt</dc:creator><description>[quote userid="274702" url="~/discussions/f/general/38877/decimal-calculation/147072"]Dot vs. comma decimal separator is defined by the user language.[/quote]
&lt;p&gt;I think the point is, you only get separators when displaying text (&amp;quot;1,000,000&amp;quot;, etc).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Decimal Calculation</title><link>https://community.appian.com/thread/147077?ContentTypeID=1</link><pubDate>Thu, 10 Apr 2025 12:23:10 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d6c059a8-6321-40ce-9f68-da4e33df7b69</guid><dc:creator>Sneha Yada</dc:creator><description>&lt;p&gt;Sorry, I didn&amp;#39;t understand.&lt;/p&gt;
&lt;p&gt;The amount will be entered in the text box.&lt;/p&gt;
&lt;p&gt;To display, using fixed(amount, 2, false) in the value parameter of the text box.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Decimal Calculation</title><link>https://community.appian.com/thread/147072?ContentTypeID=1</link><pubDate>Thu, 10 Apr 2025 07:25:29 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:635019f2-6af0-4067-8827-aabc87e4f1a2</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Dot vs. comma decimal separator is defined by the user language.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Decimal Calculation</title><link>https://community.appian.com/thread/147070?ContentTypeID=1</link><pubDate>Thu, 10 Apr 2025 07:05:48 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:94445797-c130-4a6b-9303-298beea350d8</guid><dc:creator>Sneha Yada</dc:creator><description>&lt;p&gt;We should display the user-entered amount separated by commas, so we used the text box to display the user-entered number using fixed.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Decimal Calculation</title><link>https://community.appian.com/thread/147065?ContentTypeID=1</link><pubDate>Thu, 10 Apr 2025 05:29:46 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f27c62b0-fdee-4ef2-9e4c-97fb41a2d57c</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;No. fixed returns a string, not a decimal. The only correct way to reduce the number of decimal digits is by rounding.&lt;/p&gt;
&lt;p&gt;My next question: Why do you use a text field in the first place?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Decimal Calculation</title><link>https://community.appian.com/thread/147059?ContentTypeID=1</link><pubDate>Thu, 10 Apr 2025 00:42:35 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:58d2b775-bb89-418d-9168-20d4ba3042c4</guid><dc:creator>Mathieu Drouin</dc:creator><description>&lt;p&gt;Perhaps this will help:&amp;nbsp;&lt;a href="https://docs.appian.com/suite/help/25.1/recipe-define-a-simple-currency-component.html"&gt;docs.appian.com/.../recipe-define-a-simple-currency-component.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Decimal Calculation</title><link>https://community.appian.com/thread/147058?ContentTypeID=1</link><pubDate>Thu, 10 Apr 2025 00:41:34 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d3d3a17e-aa7d-41af-8b1c-ca3c33a5ffae</guid><dc:creator>Sneha Yada</dc:creator><description>&lt;p&gt;Since it is a textbox field, the user can enter multiple digits after the decimal, and I need to save the number with precision 2.&lt;/p&gt;
&lt;p&gt;To save the values in the local variable/cdt decimal field fixed(&amp;lt;&amp;lt;input value&amp;gt;&amp;gt;, 2) is the correct choice?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Decimal Calculation</title><link>https://community.appian.com/thread/147037?ContentTypeID=1</link><pubDate>Wed, 09 Apr 2025 12:25:16 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3b03101a-4954-4301-8a4d-e9ab831cd6af</guid><dc:creator>Mathieu Drouin</dc:creator><description>&lt;p&gt;Explanation can be found here:&amp;nbsp;&lt;a href="https://community.appian.com/support/w/kb/707/kb-1426-unexpected-results-on-decimal-calculations-and-rounding"&gt;community.appian.com/.../kb-1426-unexpected-results-on-decimal-calculations-and-rounding&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Decimal Calculation</title><link>https://community.appian.com/thread/147029?ContentTypeID=1</link><pubDate>Wed, 09 Apr 2025 08:10:12 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4e14c5e0-58d4-472a-aaa4-8481326140b3</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Computers represent decimal number with a limited precision. In your case, trying to convert between text and decimal multiple times does not help either.&lt;/p&gt;
&lt;p&gt;Fixed should only be used to display a value to the user as it returns a string.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>