Long multiplication: Difference between revisions

Content added Content deleted
m (→‎version 1: fixed a typo.)
m (→‎version 1: reduced initial number of decimal digits.)
Line 3,827: Line 3,827:
Programming note: &nbsp; <big>&&</big> &nbsp; is REXX's &nbsp; '''exclusive or''' &nbsp; operand.
Programming note: &nbsp; <big>&&</big> &nbsp; is REXX's &nbsp; '''exclusive or''' &nbsp; operand.
<lang rexx>/*REXX program performs long multiplication on two numbers (without the "E"). */
<lang rexx>/*REXX program performs long multiplication on two numbers (without the "E"). */
numeric digits 3000 /*be able to handle gihugeic input #s. */
numeric digits 300 /*be able to handle gihugeic input #s. */
parse arg x y . /*obtain optional arguments from the CL*/
parse arg x y . /*obtain optional arguments from the CL*/
if x=='' | x=="," then x=2**64 /*Not specified? Then use the default.*/
if x=='' | x=="," then x=2**64 /*Not specified? Then use the default.*/