Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose numerator/denominator of Rational #105

Closed
elbaro opened this issue Mar 22, 2018 · 1 comment
Closed

Expose numerator/denominator of Rational #105

elbaro opened this issue Mar 22, 2018 · 1 comment

Comments

@elbaro
Copy link

elbaro commented Mar 22, 2018

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

let (numerator, denominator) = rational.fraction()
@rozbb
Copy link
Collaborator

rozbb commented Jun 18, 2018

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.

@rozbb rozbb closed this as completed Jun 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants