<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.smt-x.com/index.php?action=history&amp;feed=atom&amp;title=Number_formatting_forCalculations</id>
	<title>Number formatting forCalculations - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.smt-x.com/index.php?action=history&amp;feed=atom&amp;title=Number_formatting_forCalculations"/>
	<link rel="alternate" type="text/html" href="https://wiki.smt-x.com/index.php?title=Number_formatting_forCalculations&amp;action=history"/>
	<updated>2026-04-03T20:33:45Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.3</generator>
	<entry>
		<id>https://wiki.smt-x.com/index.php?title=Number_formatting_forCalculations&amp;diff=173&amp;oldid=prev</id>
		<title>Smtxwiki: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://wiki.smt-x.com/index.php?title=Number_formatting_forCalculations&amp;diff=173&amp;oldid=prev"/>
		<updated>2020-05-25T20:44:29Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 22:44, 25 May 2020&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Smtxwiki</name></author>
	</entry>
	<entry>
		<id>https://wiki.smt-x.com/index.php?title=Number_formatting_forCalculations&amp;diff=172&amp;oldid=prev</id>
		<title>Smtxwiki at 10:33, 7 December 2018</title>
		<link rel="alternate" type="text/html" href="https://wiki.smt-x.com/index.php?title=Number_formatting_forCalculations&amp;diff=172&amp;oldid=prev"/>
		<updated>2018-12-07T10:33:32Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;First of all, SSP is developed in .NET, that normally likes the English way of showing a numbe - Example: 12,000.12:&lt;br /&gt;
 . (dot) for the decimals seperator&lt;br /&gt;
 , (comma) for the thousands seperator&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
But in most of Europe, you like to show the number like this:&lt;br /&gt;
   12.000,12&lt;br /&gt;
&lt;br /&gt;
If you use the last format (12.000,65), SSP will see it as 12,00065.&lt;br /&gt;
&lt;br /&gt;
To show any entered number into a nice EU-format, use this formula in the field:&lt;br /&gt;
   FORMAT(&amp;#039;{0:N2}&amp;#039;, ToNumber(&amp;#039;#REPLACE-FORMFIELD#&amp;#039;,0))&lt;br /&gt;
&lt;br /&gt;
But is better to store it in a datastore using the US format. You can convert it back to it using:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   REPLACE(REPLACE(&amp;#039;#REPLACE-FORMFIELD#&amp;#039;, &amp;#039;.&amp;#039;,&amp;#039;&amp;#039;), &amp;#039;,&amp;#039;, &amp;#039;.&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
see also ticket: 1847&lt;br /&gt;
or sample form: http://dev.ssp7.smt-x.com/Forms/form.aspx?adminmode=1&amp;amp;id=179&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you don&amp;#039;t expect numbers to contains dots, it is ok to transform , into . :&lt;br /&gt;
   REPLACE(&amp;#039;#REPLACE-FORMFIELD-CalculationtestRepeatingSections||Quantity||#&amp;#039;, &amp;#039;,&amp;#039;,&amp;#039;.&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
This also gives issues when running queries on datastores.&lt;br /&gt;
As a rule of thumb, do not store the thousands seperator in the datastore!&lt;br /&gt;
So first, convert the entered field into a format without thousands seperator:&lt;br /&gt;
   FORMAT(&amp;#039;{0:f2}&amp;#039;, ToNumber(&amp;#039;##&amp;#039;,0))&lt;br /&gt;
&lt;br /&gt;
If your users use &amp;#039;,&amp;#039; as a decimal seperator, replace it with a &amp;#039;.&amp;#039;.&lt;br /&gt;
Users can always enter a thousand seperator, so you need to get rid of it.&lt;br /&gt;
&lt;br /&gt;
This formula changes the users input in 1(amount_01) to (remove thousands seperator &amp;amp; convert commas to dots):&lt;br /&gt;
&lt;br /&gt;
  REPLACE(FORMAT(&amp;#039;{0:f2}&amp;#039;, ToNumber(&amp;#039;#REPLACE-FORMFIELD-Numbers example||Amount_01||#&amp;#039;,0)),&amp;#039;,&amp;#039;,&amp;#039;.&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You can do this before writing into the datastore, or adapt your query so it replaces commas by dots, like this : &lt;br /&gt;
   replace(&amp;#039;field10&amp;#039;,&amp;#039;,&amp;#039;,&amp;#039;.&amp;#039;)&lt;br /&gt;
To then show the number back to the user, convert it back, using the FORMAT as shown above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--- the other way around----&lt;br /&gt;
IF your datastore gives you a number as it likes it (so no thousand seperators and dots for decimal seperator), you need to do it the other way around.&lt;br /&gt;
First, do the replace, and set the format to something the user can read:&lt;br /&gt;
&lt;br /&gt;
  FORMAT(&amp;#039;{0:N2}&amp;#039;, tonumber(REPLACE(&amp;#039;#REPLACE-FORMFIELD-Numbers example||Amount05||#&amp;#039;, &amp;#039;.&amp;#039;,&amp;#039;,&amp;#039;)),&amp;#039;&amp;#039; ))&lt;br /&gt;
&lt;br /&gt;
in the sample form, the field is NOT coming from a datastore, so the TONUMBER is not needed&lt;br /&gt;
&lt;br /&gt;
  FORMAT(&amp;#039;{0:N2}&amp;#039;, REPLACE(&amp;#039;#REPLACE-FORMFIELD-Numbers example||Amount05||#&amp;#039;, &amp;#039;.&amp;#039;,&amp;#039;,&amp;#039;))&lt;/div&gt;</summary>
		<author><name>Smtxwiki</name></author>
	</entry>
</feed>