larcenists / larceny

Larceny Scheme implementation
Other
202 stars 32 forks source link

(expt 2.0 -1024) returns 0.0 #792

Closed WillClinger closed 7 years ago

WillClinger commented 7 years ago
> (expt 2.0 -1024)
0.0
> (* .5 (expt 2.0 -1023))
5.562684646268003e-309

As shown above, expt underflows instead of transitioning to denormalized results.

WillClinger commented 7 years ago

Fixed by changeset 121553df3dbde67ef3cbd1a2939f3ea33a45cfe2