<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Printf with Thousands Separators</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/792dd6414e/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Visualization/thread/792dd6414e/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Visualization/thread/792dd6414e/</id><updated>2021-01-22T06:40:12.272000Z</updated><subtitle>Recent posts to Printf with Thousands Separators</subtitle><entry><title>Printf with Thousands Separators</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/792dd6414e/?limit=25#20aa" rel="alternate"/><published>2021-01-22T06:40:12.272000Z</published><updated>2021-01-22T06:40:12.272000Z</updated><author><name>m.prestel</name><uri>https://forge.codesys.com/u/mprestel/</uri></author><id>https://forge.codesys.com68ad136dc489cb3d51974861e2820f65aa6b614e</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello &lt;a class="user-mention" href="/u/saullipton/"&gt;@saullipton&lt;/a&gt;,&lt;/p&gt;
&lt;p&gt;internally printf is used for most of the formatting.&lt;br/&gt;
I did not find any way to print out the number in the US style.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br/&gt;
Marcel&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Printf with Thousands Separators</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/792dd6414e/?limit=25#bd53" rel="alternate"/><published>2021-01-19T19:43:04.415000Z</published><updated>2021-01-19T19:43:04.415000Z</updated><author><name>saullipton</name><uri>https://forge.codesys.com/u/saullipton/</uri></author><id>https://forge.codesys.comd04af29b1b25660ea33500ed35b46099369dc679</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello,&lt;br/&gt;
I would like to output floating point numbers that include the thousands separators. In the US they would be commas",". For example, using %f with 12345.67 should yield "12,345.67". Is this possible without manually separating the number into strings? For example, can we set a locale that would specify the separators? Can we use printf to format the string correctly? &lt;br/&gt;
Thanks!&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>