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

Constructor for Rational class.

Parameters
  • num Numerator of the rational number.
  • den Denominator of the rational number.
Throws
  • ZeroDivisionError if the denominator is zero.