mirror of
https://gitlab.com/embeddable-common-lisp/ecl.git
synced 2026-01-24 05:21:20 -08:00
format: scale-exponent: fix denormalized long-float
Fix submitted by Marius Gerbershagen. Fixes 383.
This commit is contained in:
parent
7ef7116589
commit
3c4e1541e5
1 changed files with 1 additions and 1 deletions
|
|
@ -227,7 +227,7 @@
|
|||
;; Note that we have to compute the exponential _every_ _time_ in the loop
|
||||
;; because multiplying just by 10.0l0 every time would lead to a greater
|
||||
;; loss of precission.
|
||||
(let ((ex (round (* exponent #.(log 2l0 10)))))
|
||||
(let ((ex (- (round (* exponent #.(log 2l0 10))) delta)))
|
||||
(declare (fixnum ex))
|
||||
(if (minusp ex)
|
||||
(loop for y of-type long-float
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue