@hackage exp-extended0.1.1
floating point with extended exponent range
Categories
License
BSD-3-Clause
Maintainer
claude@mathr.co.uk
Links
Versions
Installation
Dependencies (3)
- base >=4.8 && <4.9
- compensated >=0.7 && <0.8
- log-domain >=0.10 && <0.11 Show all…
Dependents (1)
@hackage/acme-everything
A small library to extend floating point types with a larger exponent, so that you can represent really huge or really tiny numbers without overflow to infinity or underflow to zero.
> unExpExtended . log . exp . expExtended' $ 1000 1000.0 > log . exp $ 1000 Infinity > unExpExtended . log . exp . negate . expExtended' $ 1000 -1000.0 > log . exp . negate $ 1000 -Infinity
Version 0.1.1 is a bugfix release, correctly handling exactly-zero values in additions and comparisons.