Arithmetic/Integer: Difference between revisions

m
→‎{{header|REXX}}: used numbers instead of spelled-out (English) name of the number..
m (→‎{{header|REXX}}: used numbers instead of spelled-out (English) name of the number..)
Line 4,117:
=={{header|REXX}}==
All operators automatically produce integers where appropriate   (up to twenty decimal digits in the program below),
<br>or numbers in exponential format when necessary. &nbsp; (The REXX default is nine&nbsp; '''9''' &nbsp; 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&nbsp; '''2-''' &nbsp; 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.*/