Safe Haskell | None |
---|---|
Language | Haskell2010 |
Double
Double-precision floating point numbers. It is desirable that this type be at least equal in range and precision to the IEEE double-precision type.
Instances
toExponential :: Int -> Double -> Text #
Compute a representation in exponential format with the requested number of digits after the decimal point. The last emitted digit is rounded. If -1 digits are requested, then the shortest exponential representation is computed.
toFixed :: Int -> Double -> Text #
Compute a decimal representation with a fixed number of digits after the decimal point. The last emitted digit is rounded.
toPrecision :: Int -> Double -> Text #
Compute precision
leading digits of the given value either in
exponential or decimal format. The last computed digit is rounded.
toShortest :: Double -> Text #
Compute the shortest string of digits that correctly represent the input number.