Jump to content

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,,56) /*period.=5,start=col5c6*/
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
after:pi=3.14159265358979323846264338327950288419716939937510582097494459231
 
before:The author has two Z$100000000000000 Zimbabwe notes (100 trillion).
Cookies help us deliver our services. By using our services, you agree to our use of cookies.