<?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>Trailing zeros in decimal</title><link>https://community.appian.com/discussions/f/rules/14930/trailing-zeros-in-decimal</link><description>I get the httpResponse with a decimal field as 1.0000, but when a!fromJson parses the response bode and returns 1. How can I process it? and pass a decimal value to api with the needed number of decimal places?</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Trailing zeros in decimal</title><link>https://community.appian.com/thread/66831?ContentTypeID=1</link><pubDate>Fri, 24 May 2019 07:37:49 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1ba84634-6b6a-42c5-b602-0b731bb8310f</guid><dc:creator>dariab0002</dc:creator><description>&lt;p&gt;We need a decimal type ... but with defined trailing zeros.&amp;nbsp;&lt;span&gt;It can be a different number (4,6,10) of decimal spaces.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trailing zeros in decimal</title><link>https://community.appian.com/thread/66829?ContentTypeID=1</link><pubDate>Thu, 23 May 2019 22:50:08 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9a8b5675-f479-4f3a-9af7-3bf81eb7336b</guid><dc:creator>ekanshj</dc:creator><description>&lt;p&gt;Hi &lt;a href="/members/dariab0002"&gt;dariab0002&lt;/a&gt;&lt;br /&gt;Please try to use the fixed function provided by appian.&lt;br /&gt;&lt;a href="https://docs.appian.com/suite/help/19.1/fnc_text_fixed.html"&gt;https://docs.appian.com/suite/help/19.1/fnc_text_fixed.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;eg. fixed(1.0000,4)&lt;br /&gt;&lt;br /&gt;Only problem that you can face is that after using this function it converts the decimal to text.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trailing zeros in decimal</title><link>https://community.appian.com/thread/66816?ContentTypeID=1</link><pubDate>Thu, 23 May 2019 07:59:21 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9e8b9e6f-11cf-4bc3-966a-e674ccbc4233</guid><dc:creator>dariab0002</dc:creator><description>&lt;p&gt;type is decimal, but we need to pass exactly decimal with trailing zeros...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trailing zeros in decimal</title><link>https://community.appian.com/thread/66808?ContentTypeID=1</link><pubDate>Wed, 22 May 2019 17:05:11 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:20e1076f-f909-4242-abd5-eee615c70ccf</guid><dc:creator>dariab0002</dc:creator><description>&lt;p&gt;It can be different number of decimal spaces 4, 6, 10. I should pass it to request as it receive from another response&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trailing zeros in decimal</title><link>https://community.appian.com/thread/66805?ContentTypeID=1</link><pubDate>Wed, 22 May 2019 15:44:33 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:cab8469c-0ca8-4c20-8102-4e11ff8b1178</guid><dc:creator>Stewart Burchell</dc:creator><description>&lt;p&gt;So: the api that you need to pass the value to - what type is the value expected to be passed as? If it&amp;#39;s a decimal then passing 1 to it will be fine. If the type is text but it is only ever expecting a string that conforms to a decimal format then you can use the fixed() function to force 4 decimal places if needed.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>