-
Notifications
You must be signed in to change notification settings - Fork 0
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
Negative zero can create other negative numbers #1
Comments
I see. Given that this problem is a lot more complex that I thought and since your library deals with this problem much more throughly, I will put a note on the readme to recommend your library as it doesn't make sense for me to re-implement the same logic that already exists in yours. |
Thank you for the vote of confidence. That said, I do think your crate is interesting and useful if someone needs a very simple crate to handle positive numbers with a few methods, and I do think it can be fixed. |
If I convert |
With functions like I like your solution, btw. |
Disclaimer: I'm the author of https://crates.io/crates/typed_floats and the complexity of the problem can be seen in https://docs.rs/typed_floats/latest/typed_floats/trait.Float.html
The text was updated successfully, but these errors were encountered: