Arithmetic/Integer: Difference between revisions

Content added Content deleted
m (→‎{{header|REXX}}: used numbers instead of spelled-out (English) name of the number..)
m (→‎{{header|REXX}}: fixed typo.)
Line 4,120: Line 4,120:


For division that produces a floating point number, the result is rounded to the nearest number that can be expressed
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 &nbsp; '''2-''' &nbsp; decimal digits).
<br>within the current number of decimal digits &nbsp; (in the example program below, it is &nbsp; '''20''' &nbsp; decimal digits).
<lang rexx>/*REXX program obtains two integers from the C.L. (a prompt); displays some operations.*/
<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.*/
numeric digits 20 /*#s are round at 20th significant dig.*/