Four is magic: Difference between revisions

Content added Content deleted
m (→‎{{header|REXX}}: added wording to the REXX section header (concerning where the default numbers were taken).)
m (→‎{{header|REXX}}: added a caveat to the REXX section header (concerning the maximum number supported).)
Line 237: Line 237:
=={{header|REXX}}==
=={{header|REXX}}==
The numbers used for the default were taken from the   '''Kotlin'''   example.
The numbers used for the default were taken from the   '''Kotlin'''   example.

Numbers are limited to 3,003 decimal digits, the maximum number that the   '''$SPELL#'''   REXX program will handle.
<lang rexx>/*REXX pgm converts a # to English into the phrase: a is b, b is c, ... four is magic. */
<lang rexx>/*REXX pgm converts a # to English into the phrase: a is b, b is c, ... four is magic. */
numeric digits 3000 /*be able to handle gihugic numbers. */
numeric digits 3003 /*be able to handle gihugic numbers. */
parse arg x /*obtain optional numbers from the C.L.*/
parse arg x /*obtain optional numbers from the C.L.*/
if x='' then x=-164 0 4 6 11 13 75 100 337 9223372036854775807 /*use these defaults?*/
if x='' then x=-164 0 4 6 11 13 75 100 337 9223372036854775807 /*use these defaults?*/