Menu

#1024 say 6**776119592182705

None
closed
nobody
none
5
2013-11-22
2011-09-16
frank
No

say 6776119592182705 triggers errortext(26) with "Operand to the right of the power operator () must be a whole number; found 776119592182705".

For NUMERIC DIGITS 20 datatype(776119592182705,"w") is 1. Even if there is a limit 999,999,999 the error text is wrong, but IIRC that limit only affects E999999999, not the ** operator. For the reason why I tested this see https://oeis.org/A127106

Discussion

  • Rick McGuire

    Rick McGuire - 2011-09-16

    This is the correct result. This is covered in section 10.5 of the reference, "Limits and Errors when Rexx Uses Numbers Directly".

     
  • Rick McGuire

    Rick McGuire - 2013-11-22
    • Pending work items: --> none
    • Group: v4.2.0 --> None
     

Anonymous
Anonymous

Add attachments
Cancel