Variable size/Set: Difference between revisions

Content added Content deleted
(Added XPL0)
(→‎{{header|REXX}}: added comments to the REXX section header. -- ~~~~)
Line 339: Line 339:
=={{header|REXX}}==
=={{header|REXX}}==
In REXX, there are no minimums for variables holding character literals, so you just simply assign (set) character strings to REXX variables.
In REXX, there are no minimums for variables holding character literals, so you just simply assign (set) character strings to REXX variables.
<br>Note that REXX stores all the values of variables as characters, and that includes numbers and booleans.
<br>Note that REXX stores all the values of variables as characters, and that includes numbers (all kinds), booleans (logical), and labels (including subroutine/function names).
<br>However, to insure that REXX can store numbers with a minimum size, the '''NUMERIC DIGITS nnn''' instruction can be used.
<br>However, to insure that REXX can store numbers with a minimum size (amount of digits), the &nbsp; '''NUMERIC DIGITS nnn''' &nbsp; instruction can be used. &nbsp; This will ensure that the number can be stored without resorting to exponential notation &nbsp; (although exponential notation can be forced via the &nbsp; '''FORMAT''' &nbsp; BIF.
<br><br>The default is 9 digits.
<br><br>The default is 9 digits.
<br><br>There's effectively is no limit for the precision [or length] for REXX numbers (except for memory), but eight million is the practical limit.
<br><br>There's effectively is no limit for the precision [or length] for REXX numbers (except for memory), but eight million is the practical limit.