dnsl48 / fraction

[Rust] Lossless fractions and decimals; drop-in float replacement
Apache License 2.0
83 stars 25 forks source link

How to convert to `f32` and `f64` numeric types #56

Closed cactusdualcore closed 2 years ago

cactusdualcore commented 2 years ago

Other crates may expect numbers of types f32 or f64. Does a way exist to convert a Fraction to a f64 without using a string as an intermediate representation?

cactusdualcore commented 2 years ago

Found ToPrimitive implementation