<?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>Hi All #RoundingOff #FloatToDecimal #XSD 1) We have a CDT wherein one of it</title><link>https://community.appian.com/discussions/f/rules/7323/hi-all-roundingoff-floattodecimal-xsd-1-we-have-a-cdt-wherein-one-of-it</link><description>Hi All #RoundingOff #FloatToDecimal #XSD 1) We have a CDT wherein one of its field was defined with &amp;#39;float&amp;#39; property (mapped to the table with the type of float as well in the database). This is how that field in the XSD looked like. &amp;lt;xsd:element name</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Hi All #RoundingOff #FloatToDecimal #XSD&lt;br /&gt;1) We have a CDT wherein one of it</title><link>https://community.appian.com/thread/29736?ContentTypeID=1</link><pubDate>Mon, 04 Apr 2016 16:47:40 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3d28aecb-529a-4af7-92dd-246bd8db9643</guid><dc:creator>siddharthg837</dc:creator><description>Attaching snapshot for the above.&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;a href="/cfs-filesystemfile/__key/communityserver-discussions-components-files/15/Decimal-Float-XSD.PNG"&gt;&lt;img src="/cfs-filesystemfile/__key/communityserver-discussions-components-files/15/Decimal-Float-XSD.PNG" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hi All #RoundingOff #FloatToDecimal #XSD&lt;br /&gt;1) We have a CDT wherein one of it</title><link>https://community.appian.com/thread/29734?ContentTypeID=1</link><pubDate>Mon, 04 Apr 2016 16:46:56 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:debe9fd4-97ca-45fd-a1fc-39e6880da95e</guid><dc:creator>siddharthg837</dc:creator><description>Hi Vishnu - thank you for your response.I went through this link and under &amp;quot;Mapping CDT Fields to RDBMS Columns&amp;quot; section - the XSD type = float has Number (Decimal) in Appian and &amp;quot;float&amp;quot; as data type in the mentioned databases, which was my case earlier which wasnt working for me - wherein in XSD I specified &amp;#39;float&amp;#39;.&lt;br /&gt;&lt;br /&gt;If we are saying that &amp;#39;float&amp;#39; should not be specified in the XSD definition for any fields and should always be Number(Decimal), Appian should not allow this to upload in the system, however since it does, then why its some random values which are giving this strange behavior and not all values.&lt;br /&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hi All #RoundingOff #FloatToDecimal #XSD&lt;br /&gt;1) We have a CDT wherein one of it</title><link>https://community.appian.com/thread/29713?ContentTypeID=1</link><pubDate>Sat, 02 Apr 2016 15:55:24 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:33f2100a-1609-4923-88a0-8fa8390add97</guid><dc:creator>vishnuv</dc:creator><description>@siddharth, For FLOAT, the corresponding Appian type is Number (Decimal) and respective DB types are as follows:&lt;br /&gt;MySQL - float&lt;br /&gt;SQL - float&lt;br /&gt;Oracle - float.&lt;br /&gt;This is reason your alternate approach of changing the CDT type to Decimal worked.&lt;br /&gt;You may go through below link for more details&lt;br /&gt;https://forum.appian.com/suite/help/7.9/Custom_Data_Types_from_XSD.html&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hi All #RoundingOff #FloatToDecimal #XSD&lt;br /&gt;1) We have a CDT wherein one of it</title><link>https://community.appian.com/thread/29712?ContentTypeID=1</link><pubDate>Sat, 02 Apr 2016 15:02:31 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1b12464a-5f1d-4778-a569-b61196251df9</guid><dc:creator>Stefan Helzle</dc:creator><description>Are you sure this is not just a matter of formatting? Try this expression&lt;br /&gt;&lt;br /&gt;=with(local!value: todecimal(6244676.65),&lt;br /&gt;local!value &amp;amp; &amp;quot; - &amp;quot; &amp;amp; text(local!value, &amp;quot;#.##&amp;quot;)&lt;br /&gt;)&lt;br /&gt;&lt;br /&gt;For me it returns: &lt;br /&gt;&lt;br /&gt;6244677 - 6244676.65&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hi All #RoundingOff #FloatToDecimal #XSD&lt;br /&gt;1) We have a CDT wherein one of it</title><link>https://community.appian.com/thread/29710?ContentTypeID=1</link><pubDate>Sat, 02 Apr 2016 10:06:31 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8e5e69e6-6ea4-48e0-9dff-7056e6068788</guid><dc:creator>siddharthg837</dc:creator><description>...al&amp;#39; ?&lt;br /&gt;Any thoughts on this !&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hi All #RoundingOff #FloatToDecimal #XSD&lt;br /&gt;1) We have a CDT wherein one of it</title><link>https://community.appian.com/thread/29709?ContentTypeID=1</link><pubDate>Sat, 02 Apr 2016 10:06:30 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d4eea587-32e4-40b7-be31-d60d8d93b1f9</guid><dc:creator>siddharthg837</dc:creator><description>...then hit a query rule/query entity on Appian, it still shows the incorrect one, ie, 6244676.50 (when tested directly on the interface).&lt;br /&gt;&lt;br /&gt;The above behavior is something which is not getting occured for all the figures but are some random values(not able to figure that out if there is some specified range for this to happen). For most of the figures, it does gets entered and displayed correctly.&lt;br /&gt;&lt;br /&gt;As a workaround, we modified the above CDT field annotation to change the field type from &amp;#39;float&amp;#39;  to &amp;#39;decimal&amp;#39;, keeping the columnDefinition (table column type) still same to &amp;#39;float&amp;#39;, thereafter which everything works fine. (see below the updated definition)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;   &amp;lt;xsd:element name=&amp;quot;FundAmt&amp;quot; nillable=&amp;quot;true&amp;quot; type=&amp;quot;xsd:decimal&amp;quot;&amp;gt;&lt;br /&gt;        &amp;lt;xsd:annotation&amp;gt;&lt;br /&gt;          &amp;lt;xsd:appinfo source=&amp;quot;appian.jpa&amp;quot;&amp;gt;@Column(name=&amp;quot;fund_amt&amp;quot;, columnDefinition=&amp;quot;FLOAT&amp;quot;)&amp;lt;/xsd:appinfo&amp;gt;&lt;br /&gt;        &amp;lt;/xsd:annotation&amp;gt;&lt;br /&gt;      &amp;lt;/xsd:element&amp;gt;&lt;br /&gt;&lt;br /&gt;Not sure, why Appian treats data type of &amp;#39;float&amp;#39; differently from &amp;#39;decim...&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>