This module defines a "Fixed" type for fixed-precision arithmetic. The parameter to Fixed is any type that's an instance of HasResolution. HasResolution has a single method that gives the resolution of the Fixed type.
This module also contains generalisations of div, mod, and divmod to work with any Real instance.
|generalisation of div to any instance of Real|
|generalisation of mod to any instance of Real|
|generalisation of divMod to any instance of Real|
|First arg is whether to chop off trailing zeros|
|resolution of 1, this works the same as Integer|
|resolution of 10^-1 = .1|
|resolution of 10^-2 = .01, useful for many monetary currencies|
|resolution of 10^-3 = .001|
|resolution of 10^-6 = .000001|
|resolution of 10^-9 = .000000001|
|resolution of 10^-12 = .000000000001|
|Produced by Haddock version 2.6.0|