{"id":1464,"date":"2014-05-20T09:43:00","date_gmt":"2014-05-20T09:43:00","guid":{"rendered":"http:\/\/www.navision-blog.de\/blog\/?p=1464"},"modified":"2014-05-20T09:43:00","modified_gmt":"2014-05-20T09:43:00","slug":"regression-in-dynamics-nav-2013-r2-string-formatting","status":"publish","type":"post","link":"http:\/\/www.navision-blog.de\/blog\/2014\/05\/20\/regression-in-dynamics-nav-2013-r2-string-formatting\/","title":{"rendered":"Regression in Dynamics NAV 2013 R2 string formatting"},"content":{"rendered":"<p>We are still porting one of our products from Dynamics NAV 2009 R2 (Classic Client) to NAV 2013 R2 and found another strange issue:<\/p>\n<p>On Dynamics NAV 2009 R2 Classic client (Build 6.00.33494):<\/p>\n<pre>FORMAT(13.5671,0,'&lt;Integer,4&gt;'); ==&gt; 0013,5671\r\nFORMAT(13.5671,0,'&lt;Precision,0:0&gt;&lt;Integer,4&gt;'); ==&gt; <strong>0014\r\n<\/strong><\/pre>\n<p>But on Dynamics NAV 2013 R2 (Build 7.10.36281) we get:<\/p>\n<pre>FORMAT(13.5671,0,'&lt;Integer,4&gt;'); ==&gt; 0013,5671\r\nFORMAT(13.5671,0,'&lt;Precision,0:0&gt;&lt;Integer,4&gt;'); ==&gt; <strong>0013\r\n<\/strong><\/pre>\n<p>Not sure if it is that important for practical purposes, but it&#8217;s breaking some of our unit tests. ;-(<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We are still porting one of our products from Dynamics NAV 2009 R2 (Classic Client) to NAV 2013 R2 and found another strange issue: On Dynamics NAV 2009 R2 Classic client (Build 6.00.33494): FORMAT(13.5671,0,'&lt;Integer,4&gt;&#8217;); ==&gt; 0013,5671 FORMAT(13.5671,0,'&lt;Precision,0:0&gt;&lt;Integer,4&gt;&#8217;); ==&gt; 0014 But on Dynamics NAV 2013 R2 (Build 7.10.36281) we get: FORMAT(13.5671,0,'&lt;Integer,4&gt;&#8217;); ==&gt; 0013,5671 FORMAT(13.5671,0,'&lt;Precision,0:0&gt;&lt;Integer,4&gt;&#8217;); ==&gt; 0013 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"http:\/\/www.navision-blog.de\/blog\/wp-json\/wp\/v2\/posts\/1464"}],"collection":[{"href":"http:\/\/www.navision-blog.de\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.navision-blog.de\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.navision-blog.de\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.navision-blog.de\/blog\/wp-json\/wp\/v2\/comments?post=1464"}],"version-history":[{"count":1,"href":"http:\/\/www.navision-blog.de\/blog\/wp-json\/wp\/v2\/posts\/1464\/revisions"}],"predecessor-version":[{"id":1465,"href":"http:\/\/www.navision-blog.de\/blog\/wp-json\/wp\/v2\/posts\/1464\/revisions\/1465"}],"wp:attachment":[{"href":"http:\/\/www.navision-blog.de\/blog\/wp-json\/wp\/v2\/media?parent=1464"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.navision-blog.de\/blog\/wp-json\/wp\/v2\/categories?post=1464"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.navision-blog.de\/blog\/wp-json\/wp\/v2\/tags?post=1464"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}