Rational Numbers and Float #
Convert this floating point number to a rational value,
mapping non-finite values (inf
, -inf
, nan
) to 0.
Equations
- a.toRat0 = a.toRat?.getD 0
Convert this floating point number to a rational value,
mapping non-finite values (inf
, -inf
, nan
) to 0.