klyn.math.Rational.Rational
constructor
public Rational( num as Int = 0, den as Int = 1 ) throws ZeroDivisionError:
Description

Constructor for Rational class.

Parameters
ParameterDescription
numNumerator of the rational number.
denDenominator of the rational number.
Throws
  • ZeroDivisionError if the denominator is zero.