Anonymous user
Arithmetic/Integer: Difference between revisions
m
→{{header|REXX}}: added/changed wording in the REXX section header.
Spintronic (talk | contribs) (→{{header|BASIC}}: Added True BASIC example.) |
m (→{{header|REXX}}: added/changed wording in the REXX section header.) |
||
Line 3,226:
=={{header|REXX}}==
All operators automatically produce integers where appropriate (up to
<br>or numbers in exponential format when necessary. (The REXX default is nine decimal digits.)
For division that produces a floating point number, the result is rounded to the nearest number that can be expressed
<br>within the current number of decimal digits (in the example program below, it is twenty decimal digits).
<lang rexx>/*REXX program obtains two integers from the C.L. (a prompt); displays some operations.*/
numeric digits 20 /*#s are round at 20th significant dig.*/
|