<?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>Mathematical comparison between two  values (Text type)</title><link>https://community.appian.com/discussions/f/general/24936/mathematical-comparison-between-two-values-text-type</link><description>What would be the best way to conclude which of the two values ( text type ) is higher ? 
 
 touniformstring(1500000)&amp;lt;touniformstring(14285714) : this is returning as false . ( O/P should be True for mathematically to be correct ) 
 touniformstring(1245</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Mathematical comparison between two  values (Text type)</title><link>https://community.appian.com/thread/96493?ContentTypeID=1</link><pubDate>Mon, 20 Jun 2022 09:33:20 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:da75fb0a-3d0e-4cbf-8b47-714133f24d40</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;I do not understand the issue to overcome. The mentioned calculation is correct and you use fixed() or text() to display that value to the user.&lt;/p&gt;
&lt;p&gt;So, I think that you could create a view in the DB to cast &amp;nbsp;the values to numbers and then query this view.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mathematical comparison between two  values (Text type)</title><link>https://community.appian.com/thread/96488?ContentTypeID=1</link><pubDate>Mon, 20 Jun 2022 08:39:44 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4f3f5435-2c3c-4b5f-b94b-564163b8ca45</guid><dc:creator>vetri1406</dc:creator><description>&lt;p&gt;Hi Stefan ,&lt;/p&gt;
&lt;p&gt;Use case is similar to the question raised . Not in a position to use decimal function (The field is maintained as a Text type )&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span class="CollapsibleOutputNode---print_value"&gt;67658889*2.6 =&amp;nbsp;1.759131e+08&lt;span class="CollapsibleOutputNode---print_element_type"&gt;(Number (Decimal))&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;to overcome the above , the field is maintained as a text type . Now there is a case where we need to fetch values greater than X from DB . Unfortunately the field is of type text .&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Any suggestions or any more inputs needed ?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mathematical comparison between two  values (Text type)</title><link>https://community.appian.com/thread/96479?ContentTypeID=1</link><pubDate>Mon, 20 Jun 2022 08:10:48 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2371ebad-ee70-4a09-abdd-6fed1547a900</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Hm .... mathematics works with numbers, not strings.&lt;/p&gt;
&lt;p&gt;Can you explain your use case and why a cast to a decimal is not &amp;quot;allowed&amp;quot;?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>