-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Implement floating-point manipulation functions for BigFloat
#11007
Implement floating-point manipulation functions for BigFloat
#11007
Conversation
CI is failing on Windows: https://github.com/crystal-lang/crystal/actions/runs/10698882947/job/29660333970?pr=11007
|
These exponents will overflow even when GMP / MPIR handles the internal exponents correctly, so a fix similar to #14971 is needed. Moreover all |
BigFloat
already has an implementation offrexp
becausehash
needs it (I think); this PR adds the remaining floating-point manipulation operations.Methods that take an additional integer accept an
Int
directly, so this takes care of the allowed conversions in #10907.BigFloat
from GMP doesn't have the notion of signed zeros, socopysign
is only an approximation. (As usual, MPFR floats feature signed zeros.)