#1221 18-Digit Exponent Not Supported on 64-Bit System

v4.2.0
closed
None
complete
1
2014-04-15
2013-12-10
Erich
No

Rexx Reference, C.1.38. Error 42 - Arithmetic overflow/underflow
Explanation: The result of an arithmetic operation requires an exponent that is greater than the platform limit of nine digits for 32-bit systems or 18 for 64-bit systems.

rexx -e "numeric digits 18; say 1e999999999*10"
     1 *-* say 1e999999999*10
Error 42 running INSTORE line 1:  Arithmetic overflow/underflow
Error 42.901:  Arithmetic overflow; exponent ("1000000000") exceeds 9 digits

REXX-ooRexx_4.2.0(MT)_64-bit 6.04 8 Dec 2013

So this seems to be either a documentation bug or an interpreter bug. Which one is it?

Discussion

  • Rick McGuire

    Rick McGuire - 2013-12-10
    • status: open --> pending
    • assigned_to: Rick McGuire
    • Pending work items: none --> complete
     
  • Rick McGuire

    Rick McGuire - 2014-04-15
    • status: pending --> closed
     

Anonymous
Anonymous

Cancel  Add attachments