Anonymous user
Commatizing numbers: Difference between revisions
m
added whitespace, appended a closing quote character.
m (used a superscript 2 instead of a "squared" glyph.) |
m (added whitespace, appended a closing quote character.) |
||
Line 23:
Leading zeroes are never commatized. The string 0000000005714.882 after commatization is: 0000000005,714.882
Any ''period'' (<big><b>.</b></big>) in a number is assumed to be a ''decimal point''.
The original string is never changed ''except'' by the addition of commas [or whatever character(s) is/are used for insertion], if at all.
Line 46:
::::::* 10000pow(pi)
<br>Numbers may be terminated with any non-digit character, including subscripts and/or superscript: 4142135624<sup>
The character(s) to be used for the comma can be specified, and may contain blanks, tabs, and other whitespace characters, as well as multiple characters. The default is the comma (<big>''','''</big>) character.
The ''period length'' can be specified (sometimes referred to as "thousands" or "thousands separators"). The ''period length'' can be defined as the length (or number) of the decimal digits between commas. The default period length is <big>3</big>.
::: E.G.: in this example, the ''period length'' is five: 56789,12340,14148
Line 60:
;Strings to be used as a minimum:
The value of pi should be separated with blanks every '''5''' places past the decimal point,
<br>the Zimbabwe dollar amount should use a decimal point for the "comma" separator:
|