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

Dividing RBig by an IBig or UBig may reuslt in a zero denominator #55

Open
robbert-vdh opened this issue Oct 29, 2024 · 0 comments
Open

Comments

@robbert-vdh
Copy link

I haven't checked where and why this may be happening, but some interactions between RBig and IBig/UBig result in zero denominators, causing some further operations to panic. For example:

>> rbig!(10) / ibig!(10)
1 / 0
>> rbig!(10) / ubig!(10)
1 / 0
>> Rational::from((Rational::simplest_from_f64(123.456).unwrap() * ibig!(10)).round()) / ibig!(10)
247 / 0

This doesn't happen with Relaxed, which leads me to assume it's something to do with the simplification. Tested with dashu 0.4.2 from crates.io.

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

1 participant