Hey guys I'm a REXX newbie. I am writing a script using REXX in which I use larger numbers. I want to so some simple math routines like add and subtract. Could someone please explain why the following code doesn't work as expected...
say 2079476919 - 2079476916
Output:
0
Or perhaps why I get this
say 2079476919 + 1
Output:
2.07947692E+9
Or can someone tell me why the following is false.
IF 2079476916 >= 2079476919 THEN SAY "False"
Output:
False
BUT if I work with smaller number it works fine.
IF 6916 >= 6919 THEN DO
SAY "False"
END
ELSE DO
SAY "True"
END
Output:
True
say 2079476919 - 2079476916
Output:
0
Or perhaps why I get this
say 2079476919 + 1
Output:
2.07947692E+9
Or can someone tell me why the following is false.
IF 2079476916 >= 2079476919 THEN SAY "False"
Output:
False
BUT if I work with smaller number it works fine.
IF 6916 >= 6919 THEN DO
SAY "False"
END
ELSE DO
SAY "True"
END
Output:
True