floating point with extended exponent range http://code.mathr.co.uk/exp-extended

Latest on Hackage:

This package is not currently in any snapshots. If you're interested in using it, we recommend adding it to Stackage Nightly. Doing so will make builds more reliable, and allow stackage.org to host generated Haddocks.

BSD3 licensed by Claude Heiland-Allen
Maintained by claude@mathr.co.uk

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
>                 log . exp                         $ 1000
> unExpExtended . log . exp . negate . expExtended' $ 1000
>                 log . exp . negate                $ 1000

Version 0.1.1 is a bugfix release, correctly handling exactly-zero values in additions and comparisons.

comments powered byDisqus