<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/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>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: How to truncate a decimal field</title><link>https://www.infopathdev.com:443/forums/thread/65637.aspx</link><pubDate>Thu, 31 Mar 2011 18:07:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:65637</guid><dc:creator>deppen</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/65637.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=65637</wfw:commentRss><description>&lt;p&gt;Qwerty,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;That is just what I needed and it works perfect.&lt;/p&gt;
&lt;p&gt;Thank you for your help!&lt;/p&gt;</description></item><item><title>Re: How to truncate a decimal field</title><link>https://www.infopathdev.com:443/forums/thread/65636.aspx</link><pubDate>Thu, 31 Mar 2011 17:36:13 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:65636</guid><dc:creator>qwerty</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/65636.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=65636</wfw:commentRss><description>Hi deppen. Use this rule on your decimal field:&lt;br /&gt;&lt;br /&gt;&lt;hr /&gt;
&lt;b&gt;If The Expression: contains(string(decimalField), &amp;quot;.&amp;quot;):&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;
Set a field&amp;#39;s value: decimalField = number(substring(string(decimalField), 1, string-length(substring-before(string(decimalField), &amp;quot;.&amp;quot;)) + 2)).&lt;hr /&gt;&lt;br /&gt;&lt;br /&gt;
Hope this helps!</description></item><item><title>How to truncate a decimal field</title><link>https://www.infopathdev.com:443/forums/thread/65599.aspx</link><pubDate>Wed, 30 Mar 2011 16:04:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:65599</guid><dc:creator>deppen</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/65599.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=65599</wfw:commentRss><description>&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Times New Roman" size="3"&gt;Hi.&amp;nbsp; I am using Infopath 2003.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;I have a decimal(double) field in a form with one decimal place.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;I’m looking for a way to truncate the field instead of having Infopath round the value in the field.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;For example, if a user enters 4.899 in the field, the field becomes 4.9.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;I want the value of this field&amp;nbsp;to remain 4.8.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;Any help you can offer is appreciated.&amp;nbsp; Thank you!&lt;/font&gt;&lt;/p&gt;</description></item></channel></rss>