Portability | |
---|---|
Stability | Experimental |
Maintainer | capn.freako@gmail.com |
Safe Haskell | None |
Data.Newtypes.PrettyDouble
Description
- newtype PrettyDouble = PrettyDouble {
- uglyDouble :: Double
Documentation
newtype PrettyDouble Source
A custom double precision floating point type, which overides the Show
and Eq
instances, in order to:
- Limit precision to 3 places after the decimal.
- Print ridiculously small numbers as simply zero.
- Define equality as difference being less than some threshold.
Constructors
PrettyDouble | |
Fields
|