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

Value equality between two rational numbers.

Fractions are compared by cross-multiplication so reduced and non-reduced forms are considered equal (ex: 1/2 == 4/8).

Parameters
  • r1 First rational number.
  • r2 Second rational number.
Returns

True when both values represent the same rational quantity.