public static operator==(readonly notnull r1 as Rational, readonly notnull r2 as Rational) as Boolean:
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).
| Parameter | Description |
|---|---|
r1 | First rational number. |
r2 | Second rational number. |
True when both values represent the same rational quantity.