We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 48b3a11 + bc549b8 commit 8f67534Copy full SHA for 8f67534
private/mpfr.rkt
@@ -135,7 +135,8 @@
135
[(bfnan? x) (add1 (infinite-ordinal es sig))]
136
[(bfinfinite? x) (infinite-ordinal es sig)]
137
[else
138
- (define-values (c exp) (bigfloat->sig+exp x))
+ (define-values (c exp*) (bigfloat->sig+exp x))
139
+ (define exp (+ exp* (bigfloat-precision x)))
140
(define expmin (sub1 (mpfr-get-emin)))
141
(cond
142
[(< exp expmin) ; subnormal
0 commit comments