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

Is there a list of methods that floats have that aren't impled for fractions #87

Open
DrAlta opened this issue Sep 25, 2023 · 2 comments

Comments

@DrAlta
Copy link
Contributor

DrAlta commented Sep 25, 2023

I know about power and root function mentioned in #60

but are there any others?

I'm working on something, at least for my own personal use until we come up with an official solution. I haven't worked out all the details yet so won't go into them here.

@dnsl48
Copy link
Owner

dnsl48 commented Sep 26, 2023

Hey @DrAlta,

Here is the num trait which declares the Float contract: https://docs.rs/num/latest/num/trait.Float.html
We don't keep a list, but if you add impl Float for GenericFraction in your local codebase, rustc should give you the list of all missing methods.

@DrAlta
Copy link
Contributor Author

DrAlta commented Nov 11, 2023

GenericFraction doesn't impl NumCast which is a requirement for Float
You have to wrap them in the Float trait so it just lists the mall not only the missing ones.

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