Rational Numbers and Float #
Convert this floating point number to a rational value,
mapping non-finite values (inf, -inf, nan) to 0.
Instances For
Equations
- Rat.instCoeFloat_batteries = { coe := Rat.toFloat }
Convert this floating point number to a rational value,
mapping non-finite values (inf, -inf, nan) to 0.