Number names/REXX: Difference between revisions

Content added Content deleted
m (spelled out &, highlighted some numbers. -- ~~~~)
m (added comments in the section header concerning what the REXX program supports. -- ~~~~)
Line 14: Line 14:
* decimal fractions
* decimal fractions
* numbers with leading zeroes (as well as trailing zeroes)
* numbers with leading zeroes (as well as trailing zeroes)
* leading signs &nsbp; ('''+''' or '''-''')
* leading signs   ('''+''' or '''-''')
* exponential notation
* exponential notation
* currency symbols
* currency symbols
Line 20: Line 20:
* numbers   (American) up to 3,000 digits
* numbers   (American) up to 3,000 digits
* numbers   (English) up to 6,000 digits
* numbers   (English) up to 6,000 digits
* numbers with suffixes such as '''K''', '''M''', '''Gi''', etc, and also some common ones as well as factorials
* numbers with metric suffixes, namely:
** '''K M G T P E Z Y X W V U'''
* user-defineable names for:   signs, decimal point, power, currency symbols, zero (digit), etc.
* numbers with binary suffixes, namely:
** '''Ki Mi Gi Ti Pi Ei Zi Yi Xi Wi Vi Ui'''
** the above suffixes can be combined:   '''44MM'''   (44 million million)
* numbers with some common suffixes such as:
** '''dozens'''
** '''gross'''
** '''greatgross'''
** '''pairs'''
** '''scores'''
** '''googols'''
** or any suitable abbreviation of the above
* numbers expressed as a factorial   (such as   '''100!''').
* user-defineable names for:
** signs     ('''-6'''   could be expressed as   '''negatory six''')
** decimal point     ('''2.4'''   could be expressed as   '''two boing four''')
** power   (the power of ten that the number is being raised to)
** currency symbols
** zero (the digit)
** blanks
** a value of zero
* numbers may have commas but they aren't enunicated


The program has a pretty hefty prologue which determines   (among other things):
The program has a pretty hefty prologue which determines   (among other things):