Jump to content

Arithmetic/Integer: Difference between revisions

m
→‎{{header|REXX}}: added/changed wording in the REXX section header.
(→‎{{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 20twenty decimal digits in the program below),
<br>or numbers in exponential format when necessary. &nbsp; (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 &nbsp; (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.*/
Cookies help us deliver our services. By using our services, you agree to our use of cookies.