<?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: Need advice how to use an double field in an text field.</title><link>https://www.infopathdev.com:443/forums/thread/23346.aspx</link><pubDate>Fri, 28 Sep 2007 19:30:54 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:23346</guid><dc:creator>Clay Fox</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/23346.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=23346</wfw:commentRss><description>&lt;p&gt;I would add to your concat formula a substring function to truncate after 2 decimal places.&lt;/p&gt;
&lt;p&gt;concat(&amp;quot;If you pay within the next 10 days we grant you a discount of 5% (&amp;quot;; substring-before(&lt;em&gt;invoice_discount, &amp;quot;.&amp;quot; ); &amp;quot;.&amp;quot;; substring-length(substring-after(invoice_discount, &amp;quot;.&amp;quot;), 0, 2)&lt;/em&gt;; &amp;quot;€).&amp;quot;) &lt;/p&gt;
&lt;p&gt;I think that should give you what you need.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Need advice how to use an double field in an text field.</title><link>https://www.infopathdev.com:443/forums/thread/23337.aspx</link><pubDate>Fri, 28 Sep 2007 12:18:19 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:23337</guid><dc:creator>Peter_Sanderson</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/23337.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=23337</wfw:commentRss><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I want to display a text about discount in a textfield at the end of an filled out invoice form.&lt;br /&gt;It should be the following text:&lt;br /&gt;If you pay within the next 10 days we grant you a discount of 5% (&lt;strong&gt;209.23&lt;/strong&gt;€).&lt;br /&gt;The bold text -&amp;gt; &lt;strong&gt;209.23&lt;/strong&gt; should be taken from a calculated field - &lt;em&gt;invoice_discount&lt;/em&gt; - of type double which is configured to be displayed as a number with 2 decimal places.&lt;/p&gt;
&lt;p&gt;When using the formula -&amp;gt; concat(&amp;quot;If you pay within the next 10 days we grant you a discount of 5% (&amp;quot;; &lt;em&gt;invoice_discount&lt;/em&gt;; &amp;quot;€).&amp;quot;) &lt;br /&gt;It works fine, but the &lt;em&gt;invoice_discount&lt;/em&gt; gets displayed with more than 2 decimal places like 209.2300010 ! ARGHH... &lt;br /&gt;I couldn’t find a suitable solution to display the &lt;em&gt;invoice_discount&lt;/em&gt; field with only the 2 desired decimal places in the text field.&lt;/p&gt;
&lt;p&gt;Any suggestions would be great.&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>