Variable size/Set: Difference between revisions
Content added Content deleted
Walterpachl (talk | contribs) m (→{{header|REXX}}: minor correction (remove an extraneous 'is') |
m (→{{header|REXX}}: expanded the program to include another number, a scale, and more comments.) |
||
Line 399:
<br>can be forced via the '''format''' BIF ('''B'''uilt '''I'''n '''F'''unction).
<br><br>The default for ''numeric digits'' is '''9''' (decimal) digits.
<br><br>There's effectively no limit for the precision [or length] for REXX numbers (except for memory),
<br>but eight million is probably the practical limit.
<lang rexx>/*REXX program demonstrates on setting a variable (using a "minimum var size".*/
abc=12345678901111111112222222222333333333344444444445555555555.66</lang>▼
numeric digits 100 /*default: 9 (decimal digs) for numbers*/
/*── 1 2 3 4 5 6 7──*/
/*──1234567890123456789012345678901234567890123456789012345678901234567890──*/
n =-12345678901111111112222222222333333333344444444445555555555.66
/* [+] these #'s are stored as coded. */
/*stick a fork in it, we're all done. */</lang>
=={{header|Scala}}==
|