<?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 handle Double and Long values in Appian?</title><link>https://community.appian.com/discussions/f/general/12939/how-to-handle-double-and-long-values-in-appian</link><description>Hi, How can we handle the Long and Double values in Appian, I tried saving 2147483647 as Integer in a constant but I got stopped with an error and when I try to convert it to integer (i.e., toInteger(&amp;quot;2147483647&amp;quot;)) am getting unreadable output. So what</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How to handle Double and Long values in Appian?</title><link>https://community.appian.com/thread/58273?ContentTypeID=1</link><pubDate>Tue, 24 Jul 2018 06:49:54 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8b2376c1-4a82-405f-b45c-b76cd68d7cae</guid><dc:creator>rp_balaji</dc:creator><description>Hi Srinath,&lt;br /&gt;
&lt;br /&gt;
Yes I agree, the workaround to handle long or double values is to define datatype as Text but in certain cases like &amp;quot;If you want to compare the user entered value if it is greater than &amp;#39;2147483647&amp;#39; or not, then we don&amp;#39;t have choice than going with todecimal() option&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
If you have any better option or workaround plz let me know.&lt;br /&gt;
&lt;br /&gt;
Regards,&lt;br /&gt;
Balaji.R&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to handle Double and Long values in Appian?</title><link>https://community.appian.com/thread/58251?ContentTypeID=1</link><pubDate>Mon, 23 Jul 2018 19:10:40 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b40c8fc8-7a0c-4946-9192-6da472baac67</guid><dc:creator>yeswanththiyarir</dc:creator><description>Text would be the best option&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to handle Double and Long values in Appian?</title><link>https://community.appian.com/thread/58249?ContentTypeID=1</link><pubDate>Mon, 23 Jul 2018 17:45:33 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:121180f9-8e31-4db5-927e-ee4de4c00bf6</guid><dc:creator>srinatha</dc:creator><description>Hi Balaji,&lt;br /&gt;
I had the same issue couple of days back. I need to store 18 digit value. So it was the same &amp;quot;2147483647&amp;quot; constant that will be stored in db table. So, I changed the type of the CDT field to &amp;quot;Text&amp;quot; and make the db field value as varchar. &lt;br /&gt;
&lt;br /&gt;
The reason is Appian doesn&amp;#39;t support long or double. If you would use decimal or float it would round it off to some values. &lt;br /&gt;
&lt;br /&gt;
So, at this point I would suggest to make the field as text.&lt;br /&gt;
&lt;br /&gt;
Thanks&lt;br /&gt;
Srinath&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to handle Double and Long values in Appian?</title><link>https://community.appian.com/thread/58231?ContentTypeID=1</link><pubDate>Mon, 23 Jul 2018 08:19:42 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d80ae5de-0ff4-4915-968c-72d99b4bc98b</guid><dc:creator>Aditya</dc:creator><description>If you use todecimal(), all your long and double values will be rounded off , so you will always get an approximate answer even if your calculations are overhead.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to handle Double and Long values in Appian?</title><link>https://community.appian.com/thread/58229?ContentTypeID=1</link><pubDate>Mon, 23 Jul 2018 07:48:07 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e0dd4894-d58b-426e-a1c9-8e1edcf1c9dd</guid><dc:creator>rp_balaji</dc:creator><description>Hi Shubham,&lt;br /&gt;
&lt;br /&gt;
Thanks, In terms of displaying a Long or Double values we can use text but When there is calculation involved then we need to go with the workaround as mentioned in the previous comments.&lt;br /&gt;
&lt;br /&gt;
Regards,&lt;br /&gt;
Balaji.R&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to handle Double and Long values in Appian?</title><link>https://community.appian.com/thread/58227?ContentTypeID=1</link><pubDate>Mon, 23 Jul 2018 07:46:01 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8f925353-ad9d-471f-9491-119008d549be</guid><dc:creator>rp_balaji</dc:creator><description>Hi Aditya,&lt;br /&gt;
&lt;br /&gt;
Thanks for your response, yes am doing that (point no.2) as a workaround for now, but if in case calculations involved with Long or double values then Appian not supporting Long and Double datatypes may become overhead.&lt;br /&gt;
&lt;br /&gt;
Regards,&lt;br /&gt;
Balaji.R&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to handle Double and Long values in Appian?</title><link>https://community.appian.com/thread/58226?ContentTypeID=1</link><pubDate>Mon, 23 Jul 2018 07:36:48 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0622445b-5370-465b-990c-dcc614c1c994</guid><dc:creator>kaushala</dc:creator><description>Hi,&lt;br /&gt;
I was also facing the same issue and to overcome with this we used a!textfield instead of a!intergerfield.&lt;br /&gt;
but to restrict the user to enter only numeric values in the text field we created one more expression that removes alphabet and special characters from the value.&lt;br /&gt;
##ABC_Utils_RemoveAlphabetsAndSpecialCharacter&lt;br /&gt;
concat(&lt;br /&gt;
tointeger(&lt;br /&gt;
apply(&lt;br /&gt;
charat(&lt;br /&gt;
ri!String,&lt;br /&gt;
_&lt;br /&gt;
),&lt;br /&gt;
enumerate(&lt;br /&gt;
lenb( &lt;br /&gt;
ri!String&lt;br /&gt;
)&lt;br /&gt;
) + 1&lt;br /&gt;
)&lt;br /&gt;
)&lt;br /&gt;
)&lt;br /&gt;
Replace your integer field with this code&lt;br /&gt;
_____________________________________________________________________________________________________&lt;br /&gt;
a!textField(&lt;br /&gt;
label: &amp;quot;Amount&amp;quot;,&lt;br /&gt;
value: rule!ABC_Utils_RemoveAlphabetsAndSpecialCharacter(&lt;br /&gt;
String: ri!String&lt;br /&gt;
),&lt;br /&gt;
saveInto: a!save(&lt;br /&gt;
ri!String,&lt;br /&gt;
rule!ABC_Utils_RemoveAlphabetsAndSpecialCharacter(&lt;br /&gt;
String: save!value&lt;br /&gt;
)&lt;br /&gt;
)&lt;br /&gt;
)&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to handle Double and Long values in Appian?</title><link>https://community.appian.com/thread/58216?ContentTypeID=1</link><pubDate>Mon, 23 Jul 2018 05:42:13 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:bbe77604-9f7b-4812-bba2-37bf1f01e720</guid><dc:creator>Shubham Aware</dc:creator><description>Hello,&lt;br /&gt;
&lt;br /&gt;
Appian does not support long or double value only solution is to use as text.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to handle Double and Long values in Appian?</title><link>https://community.appian.com/thread/58214?ContentTypeID=1</link><pubDate>Mon, 23 Jul 2018 04:57:09 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0d2d796d-f4d2-48c7-9c84-a2275b86b508</guid><dc:creator>Aditya</dc:creator><description>Appian does not handle Long and Double values very well. However there are few workarounds.&lt;br /&gt;
&lt;br /&gt;
1. If you want the long or double values only for display purpose, like in a form or a record or a report, keep the value in the text form.&lt;br /&gt;
2. If you have to do some operation on that value like addition, subtraction etc., use todecimal(). For eg. todecimal(&amp;quot;2147483647&amp;quot;). It will give you an approximate answer after rounding off certain digits.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to handle Double and Long values in Appian?</title><link>https://community.appian.com/thread/58213?ContentTypeID=1</link><pubDate>Mon, 23 Jul 2018 04:01:02 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:074de171-b624-43e9-94fc-3a2bcc7a9dee</guid><dc:creator>vetrivelk</dc:creator><description>Hi Team ,&lt;br /&gt;
has anyone sorted this one . if so please update .&lt;br /&gt;
&lt;br /&gt;
Regards,&lt;br /&gt;
vetri&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to handle Double and Long values in Appian?</title><link>https://community.appian.com/thread/58159?ContentTypeID=1</link><pubDate>Thu, 19 Jul 2018 22:34:10 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4ac2af39-8cff-467e-a823-5f4596a5b5f7</guid><dc:creator>jeremys</dc:creator><description>&lt;p&gt;Depending on what you&amp;#39;re using the values for, a workaround would be to just save them as text. This will allow you to view the exact value of the number.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>