| Copyright | Copyright (c) 2013 David Banas; all rights reserved World wide. |
|---|---|
| License | BSD3 |
| Maintainer | capn.freako@gmail.com |
| Stability | Development |
| Portability | |
| Safe Haskell | None |
| Language | Haskell98 |
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
| |