| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
WeekDaze.Enhanced.EnhancedRatio
Contents
Description
AUTHOR- Dr. Alistair Ward
DESCRIPTION
- Defines class-instances for
Ratio. - CAVEAT: rational numbers are converted imprecisely to floating-point for representation as XML. To remedy the loss of precision on reading from XML, they're rounded to the epsilon for IEEE double-precision https://en.wikipedia.org/wiki/Machine_epsilon.
Orphan instances
| Integral i => XmlPickler (Ratio i) Source # | |
| (Integral r, Random r) => Random (Ratio r) Source # | |