Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Documentation
class FixedDecimal d where #
Fixed decimal types class
Integral
type for storing mantissa
The size of the fractional part in decimal digits
Runtime value of Scale d
decimal :: Integral m => m -> Int -> d #
Value constructor
decimal m e
constructs a decimal number via m * 10
.^^
e
Instances
(Integral m, KnownNat s) => FixedDecimal (Decimal m s) # | |