Arithmetic/Integer: Difference between revisions

Content added Content deleted
m (added whitespace before the TOC (table of contents), added a section header, added whitespace where they were intended.)
m (→‎{{header|REXX}}: changed a comment.)
Line 2,835: Line 2,835:
All operators automatically produce integers (up to 20 decimal digits in the program below),  
All operators automatically produce integers (up to 20 decimal digits in the program below),  
<br>or numbers in exponential format when necessary.
<br>or numbers in exponential format when necessary.
<lang rexx>/*REXX program gets two integers from the C.L. or via a prompt; shows 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.*/
parse arg x y . /*maybe the integers are on the C.L. */
parse arg x y . /*maybe the integers are on the C.L. */