klyn.math.Rational.operator<=
method
public static operator<=(readonly notnull r1 as Rational, readonly notnull r2 as Rational) as Boolean
Description

Tests whether the first fraction is smaller than or equal to the second.

Parameters
ParameterDescription
r1First rational number.
r2Second rational number.
Returns

True when the first value is not greater.

Example

assert Rational(1, 3) <= Rational(2, 6)