<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://ubersoft.org/Sputnik/wiki/skins/common/feed.css?301"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
		<id>http://ubersoft.org/Sputnik/wiki/index.php?action=history&amp;feed=atom&amp;title=Core_Function_FmtNumber</id>
		<title>Core Function FmtNumber - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://ubersoft.org/Sputnik/wiki/index.php?action=history&amp;feed=atom&amp;title=Core_Function_FmtNumber"/>
		<link rel="alternate" type="text/html" href="http://ubersoft.org/Sputnik/wiki/index.php?title=Core_Function_FmtNumber&amp;action=history"/>
		<updated>2026-04-12T00:46:09Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.17.0</generator>

	<entry>
		<id>http://ubersoft.org/Sputnik/wiki/index.php?title=Core_Function_FmtNumber&amp;diff=4822&amp;oldid=prev</id>
		<title>UberFoX: 1 revision</title>
		<link rel="alternate" type="text/html" href="http://ubersoft.org/Sputnik/wiki/index.php?title=Core_Function_FmtNumber&amp;diff=4822&amp;oldid=prev"/>
				<updated>2015-06-14T12:37:38Z</updated>
		
		<summary type="html">&lt;p&gt;1 revision&lt;/p&gt;
&lt;table style=&quot;background-color: white; color:black;&quot;&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='1' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
		&lt;td colspan='1' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 12:37, 14 June 2015&lt;/td&gt;
		&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>UberFoX</name></author>	</entry>

	<entry>
		<id>http://ubersoft.org/Sputnik/wiki/index.php?title=Core_Function_FmtNumber&amp;diff=4821&amp;oldid=prev</id>
		<title>UberFoX: 1 revision</title>
		<link rel="alternate" type="text/html" href="http://ubersoft.org/Sputnik/wiki/index.php?title=Core_Function_FmtNumber&amp;diff=4821&amp;oldid=prev"/>
				<updated>2014-08-11T21:41:05Z</updated>
		
		<summary type="html">&lt;p&gt;1 revision&lt;/p&gt;
&lt;table style=&quot;background-color: white; color:black;&quot;&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='1' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
		&lt;td colspan='1' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 21:41, 11 August 2014&lt;/td&gt;
		&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>UberFoX</name></author>	</entry>

	<entry>
		<id>http://ubersoft.org/Sputnik/wiki/index.php?title=Core_Function_FmtNumber&amp;diff=3844&amp;oldid=prev</id>
		<title>UberFoX: /* &lt;thousands_sep */</title>
		<link rel="alternate" type="text/html" href="http://ubersoft.org/Sputnik/wiki/index.php?title=Core_Function_FmtNumber&amp;diff=3844&amp;oldid=prev"/>
				<updated>2014-07-26T20:59:10Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;&amp;lt;thousands_sep&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: white; color:black;&quot;&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 20:59, 26 July 2014&lt;/td&gt;
		&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 33:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 33:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Default: &amp;quot;.&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Default: &amp;quot;.&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;minus;&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;==== &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;&lt;/del&gt;thousands_sep ====&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;==== thousands_sep ====&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Sets the thousands separator. &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Sets the thousands separator. &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>UberFoX</name></author>	</entry>

	<entry>
		<id>http://ubersoft.org/Sputnik/wiki/index.php?title=Core_Function_FmtNumber&amp;diff=3236&amp;oldid=prev</id>
		<title>UberFoX: Created page with &quot;&lt;pre&gt; FmtNumber( &lt;number&gt;, &lt;decimals&gt;, &lt;dec_point&gt;, &lt;thousands_sep&gt; ) &lt;/pre&gt;  === Description ===  Format a number with grouped thousands.  This function accepts either one, two,...&quot;</title>
		<link rel="alternate" type="text/html" href="http://ubersoft.org/Sputnik/wiki/index.php?title=Core_Function_FmtNumber&amp;diff=3236&amp;oldid=prev"/>
				<updated>2013-09-21T02:04:16Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;lt;pre&amp;gt; FmtNumber( &amp;lt;number&amp;gt;, &amp;lt;decimals&amp;gt;, &amp;lt;dec_point&amp;gt;, &amp;lt;thousands_sep&amp;gt; ) &amp;lt;/pre&amp;gt;  === Description ===  Format a number with grouped thousands.  This function accepts either one, two,...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
FmtNumber( &amp;lt;number&amp;gt;, &amp;lt;decimals&amp;gt;, &amp;lt;dec_point&amp;gt;, &amp;lt;thousands_sep&amp;gt; )&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Description ===&lt;br /&gt;
&lt;br /&gt;
Format a number with grouped thousands.&lt;br /&gt;
&lt;br /&gt;
This function accepts either one, two, or four parameters (not three):&lt;br /&gt;
&lt;br /&gt;
If only one parameter is given, number will be formatted without decimals, but with a comma (&amp;quot;,&amp;quot;) between every group of thousands.&lt;br /&gt;
&lt;br /&gt;
If two parameters are given, number will be formatted with decimals decimals with a dot (&amp;quot;.&amp;quot;) in front, and a comma (&amp;quot;,&amp;quot;) between every group of thousands.&lt;br /&gt;
&lt;br /&gt;
If all four parameters are given, number will be formatted with decimals decimals, dec_point instead of a dot (&amp;quot;.&amp;quot;) before the decimals and thousands_sep instead of a comma (&amp;quot;,&amp;quot;) between every group of thousands. &lt;br /&gt;
&lt;br /&gt;
=== Parameters ===&lt;br /&gt;
&lt;br /&gt;
==== number ====&lt;br /&gt;
&lt;br /&gt;
The number being formatted. &lt;br /&gt;
&lt;br /&gt;
==== decimals ====&lt;br /&gt;
&lt;br /&gt;
Sets the number of decimal points. &lt;br /&gt;
&lt;br /&gt;
Default: &amp;quot;0&amp;quot;&lt;br /&gt;
&lt;br /&gt;
==== dec_point ====&lt;br /&gt;
&lt;br /&gt;
Sets the separator for the decimal point. &lt;br /&gt;
&lt;br /&gt;
Default: &amp;quot;.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
==== &amp;lt;thousands_sep ====&lt;br /&gt;
&lt;br /&gt;
Sets the thousands separator. &lt;br /&gt;
&lt;br /&gt;
Default: &amp;quot;,&amp;quot;&lt;br /&gt;
&lt;br /&gt;
=== Return Value ===&lt;br /&gt;
&lt;br /&gt;
A formatted version of number.&lt;br /&gt;
&lt;br /&gt;
=== Remarks ===&lt;br /&gt;
&lt;br /&gt;
None.&lt;br /&gt;
&lt;br /&gt;
=== Example ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;sputnik&amp;quot;&amp;gt;&lt;br /&gt;
$number = 1234.56;&lt;br /&gt;
&lt;br /&gt;
// english notation (default)&lt;br /&gt;
say fmtNumber($number);&lt;br /&gt;
// 1,235&lt;br /&gt;
&lt;br /&gt;
// French notation&lt;br /&gt;
say fmtNumber($number, 2, ',', ' ');&lt;br /&gt;
// 1 234,56&lt;br /&gt;
&lt;br /&gt;
// english notation without thousands separator&lt;br /&gt;
$number = 1234.5678;&lt;br /&gt;
say fmtNumber($number, 2, '.', '');&lt;br /&gt;
// 1234.57&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Core Function]]&lt;/div&gt;</summary>
		<author><name>UberFoX</name></author>	</entry>

	</feed>