Arithmetic/Rational: Difference between revisions

→‎{{header|ooRexx}}: corrected the case .fraction~new(0)
(Nimrod -> Nim)
(→‎{{header|ooRexx}}: corrected the case .fraction~new(0))
Line 2,099:
use strict arg numerator, denominator = 1
 
if numeratordenominator == 0 then raise syntax 98.900 array("Fraction denominator =cannot 0be zero")
else if denominator == 0 then raise syntax 98.900 array("Fraction denominator cannot be zero")
 
-- if the denominator is negative, make the numerator carry the sign
2,295

edits