-
-
Notifications
You must be signed in to change notification settings - Fork 39
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
decimal::d128 with alga::general::real #49
Comments
If you check Cargo.lock is there only one version of |
Just 0.7.1. I also tried deleting the Cargo.lock, and running |
@snowkeep There are two issues here:
|
The Real trait requires some work on the `decimal` trait first. Related to #49.
The Real trait requires some work on the `decimal` trait first. Related to #49.
@sebcrozet. Thank you. |
The Real trait requires some work on the `decimal` trait first. Related to #49.
I've added what looked like the necessary traits (num_traits::{Bounded, Signed, FromPrimitive and a hanful of other} and approx::{UlpsEq, RelativeEq and AbsDiffEq} in a branch called alga_support. I punted on from_str_radix for now (returns Ok(d128!(0.0)) - it's the most complicated method, by far, and I don't see a need for it, so want to test everything else before taking the time. Tests need to be added, as well. |
Given the changes you've proposed on the |
Thank you for your changes on Unfortunately, lots of methods of the Also all the mathematical constants appear to be missing but I guess we could just convert constants from f64 to d128 for a first easy implementation (for example Finally, I could not find a way to convert from |
I suspect this is more of a usage error than a bug, but can't anywhere else to go for help.
I'm trying to use the ncollision2d and decimal crates, and keep getting this error:
Among others, I have this in my Cargo.toml:
As far as I can tell, that should enable the Real trait for decimal, but it isn't working. Is this a problem with alga? If not, can you tell me what I'm missing?
Thanks.
The text was updated successfully, but these errors were encountered: