Anonymous user
Commatizing numbers: Difference between revisions
→{{header|REXX}}: corrected the "spacing" of pi (period 5).
m (→{{header|REXX}}: added the REXX language. -- ~~~~) |
(→{{header|REXX}}: corrected the "spacing" of pi (period 5).) |
||
Line 96:
do i=1 while @.i\==''; if i\==1 then say /*process each string*/
say 'before:'@.i /*show the before str*/
if i==1 then say ' after:'comma(@.i,'blank',5,,
if i==2 then say ' after:'comma(@.i,".") /*comma=a decimal pt.*/
if i>2 then say ' after:'comma(@.i) /*use the defaults. */
Line 130:
<pre>
before:pi=3.14159265358979323846264338327950288419716939937510582097494459231
after:pi=3.14159 26535 89793 23846 26433 83279 50288 41971 69399 37510 58209 74944 59231
before:The author has two Z$100000000000000 Zimbabwe notes (100 trillion).
|