Aatch / ramp

RAMP - Rust Arithmetic in Multiple Precision
Apache License 2.0
263 stars 38 forks source link

Expose numerator/denominator of Rational #105

Closed elbaro closed 6 years ago

elbaro commented 6 years ago

Is it possible to get a fractional form from Rational? for example

let (numerator, denominator) = rational.fraction()
rozbb commented 6 years ago

Done! Check it: https://docs.rs/ramp/0.4.0/ramp/rational/struct.Rational.html#method.into_parts

I'm sorry for not getting to this sooner.