<?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>How to put validation on decimal precision ?</title><link>https://community.appian.com/discussions/f/general/18859/how-to-put-validation-on-decimal-precision</link><description>HI All, 
 I have a text field which takes decimal values , i want to restrict(put validation) the field with precision of 22 which means user is allowed to enter 13 digits before decimal and 9 digits after decimal point not more than that . Also, i want</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How to put validation on decimal precision ?</title><link>https://community.appian.com/thread/99881?ContentTypeID=1</link><pubDate>Mon, 22 Aug 2022 07:13:15 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5ce10d01-38f9-4185-88e1-4f4f77d3e23b</guid><dc:creator>Harshit Bumb (Appyzie)</dc:creator><description>&lt;p&gt;I have replied to your query here -&amp;nbsp;&lt;a href="https://community.appian.com/discussions/f/new-to-appian/23310/add-specific-validation-to-text"&gt;community.appian.com/.../add-specific-validation-to-text&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to put validation on decimal precision ?</title><link>https://community.appian.com/thread/99874?ContentTypeID=1</link><pubDate>Mon, 22 Aug 2022 06:46:36 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0cc6848c-58af-4b64-be67-34d196679eb6</guid><dc:creator>deepakg681722</dc:creator><description>&lt;p&gt;What issue you are facing?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to put validation on decimal precision ?</title><link>https://community.appian.com/thread/99873?ContentTypeID=1</link><pubDate>Mon, 22 Aug 2022 06:39:33 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:74160bd4-fbde-48b7-9638-ea8116cfdb1e</guid><dc:creator>yogeshc213832</dc:creator><description>&lt;p&gt;Facing similar issue but regex is not working on decimal text field&lt;/p&gt;
&lt;p&gt;can you please help me with this?&lt;/p&gt;
&lt;p&gt;I tried fixed but not working.&lt;/p&gt;
&lt;p&gt;I need my decimal field only takes decimal up to 2 places&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to put validation on decimal precision ?</title><link>https://community.appian.com/thread/99744?ContentTypeID=1</link><pubDate>Fri, 19 Aug 2022 04:07:56 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:864927bb-57d3-4622-967c-ed746700e330</guid><dc:creator>deepakg681722</dc:creator><description>&lt;p&gt;You can store this value into a seperate variable by using text function and do the validation on that variable.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to put validation on decimal precision ?</title><link>https://community.appian.com/thread/99740?ContentTypeID=1</link><pubDate>Fri, 19 Aug 2022 01:46:15 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7bf5b74a-4026-4907-a3b1-6bdaaaf8da35</guid><dc:creator>Arun Theja Muthyalu</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I am facing the similar issue now. Did you manage to solve this problem? Appreciate your response.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Arun&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to put validation on decimal precision ?</title><link>https://community.appian.com/thread/74165?ContentTypeID=1</link><pubDate>Mon, 18 May 2020 04:06:50 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:fb961a6b-7855-4e30-91b5-4898cc219706</guid><dc:creator>papreed0001</dc:creator><description>&lt;p&gt;Hi Anu,&lt;/p&gt;
&lt;p&gt;We have a function called fixed(). This function has number and &lt;em&gt;decimals(&lt;/em&gt;The number of digits after the decimal that will be maintained. 2 by default) fields.&lt;/p&gt;
&lt;p&gt;refer documentation here: &lt;a href="https://docs.appian.com/suite/help/20.1/fnc_text_fixed.html"&gt;fixed function&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;example: &lt;span style="font-family:Courier New;"&gt;fixed(7.36819, 3)&lt;/span&gt; returns &lt;code class="highlighter-rouge"&gt;7.368&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;In your case : fixed(ri!enteredValue, 9)&lt;code class="highlighter-rouge"&gt;&lt;/code&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to put validation on decimal precision ?</title><link>https://community.appian.com/thread/74158?ContentTypeID=1</link><pubDate>Sat, 16 May 2020 09:27:41 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:99ad4a3e-3670-49fc-806f-3ee0edaaba69</guid><dc:creator>ManuelHTG</dc:creator><description>&lt;p&gt;I dont know what you are doing as you are only showing the test inputs....&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/11/pastedimage1589621319124v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;anyways, if you have it with the exponential it means that at some point you are not working with a string, but rather with a number. As well, if the test inputs you might want to write &amp;quot;12.12312&amp;quot; instead of the number directly&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to put validation on decimal precision ?</title><link>https://community.appian.com/thread/74157?ContentTypeID=1</link><pubDate>Sat, 16 May 2020 07:28:17 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:293d6a4e-ead4-4b98-84fb-9181ebedd8d4</guid><dc:creator>Anu</dc:creator><description>&lt;p&gt;regexmatch(&amp;quot;^-?\d{0,13}(\.\d{0,9})?$&amp;quot;,ri!number)&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I created this regex expression but it works untill Appian converts value into exponential form . Is this expected behavior ? or Am i doing something wrong?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to put validation on decimal precision ?</title><link>https://community.appian.com/thread/74155?ContentTypeID=1</link><pubDate>Fri, 15 May 2020 22:21:21 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:dad4ded1-9b45-4899-87ef-a5e879fbdc57</guid><dc:creator>Anu</dc:creator><description>&lt;p&gt;Hi, Thank you for you response - I am using split function and comparing the length but not sure why appian converts the value into exponential form . How do i retain the original value ?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/11/pastedimage1589581279556v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to put validation on decimal precision ?</title><link>https://community.appian.com/thread/74153?ContentTypeID=1</link><pubDate>Fri, 15 May 2020 20:26:09 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:cb7ee394-7a4c-438d-8fcc-815f6542ad24</guid><dc:creator>ManuelHTG</dc:creator><description>&lt;p&gt;I would do an expression rule that receives a text and do the checks making use of the following supporting functions:&lt;/p&gt;
&lt;p&gt;&lt;a style="white-space:pre-wrap;" href="https://docs.appian.com/suite/help/20.1/fnc_text_split.html" rel="noopener noreferrer" target="_blank"&gt;split() - to find separate the arrays before and after the decimal point&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;lenght() to see the number of numbers on each of the arrays returned from split&lt;/p&gt;
&lt;p&gt;Then I would stored as a text to make sure you dont lose precision&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to put validation on decimal precision ?</title><link>https://community.appian.com/thread/74152?ContentTypeID=1</link><pubDate>Fri, 15 May 2020 20:03:49 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b9da9e4f-0604-4629-a10f-bfd144305e41</guid><dc:creator>Naveen Chandu</dc:creator><description>&lt;p&gt;You can use regexmatch() to acheive this&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>