We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Issue by klutzy Wednesday Aug 27, 2014 at 07:50 GMT
For earlier discussion, see rust-lang/rust#16782
This issue was labelled with: in the Rust repository
use std::i64::MIN; use:num::rational::Ratio; let a = Ratio::new(1, MIN);
Here a actually is -1 / MIN due to overflow in reduce():
a
-1 / MIN
reduce()
// keep denom positive! if self.denom < Zero::zero() { self.numer = -self.numer; self.denom = -self.denom; }
The text was updated successfully, but these errors were encountered:
Merge pull request rust-num#12 from pwoolcoc/num-no-default-features
a711c0a
fix(dependencies): Opt-out of default features of `num`
This issue was moved to rust-num/num-rational#6
Sorry, something went wrong.
No branches or pull requests
Issue by klutzy
Wednesday Aug 27, 2014 at 07:50 GMT
For earlier discussion, see rust-lang/rust#16782
This issue was labelled with: in the Rust repository
Here
a
actually is-1 / MIN
due to overflow inreduce()
:The text was updated successfully, but these errors were encountered: