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.
Moduledouble-conversion-2.0.5.0Haskell2010
Data.Double.Conversion.Text
This module left now only for compatibility and should not be used in new projects. Please, use Convertable type class from Data.Double.Conversion.Convertable
It is espesially recommended to convert a large amount of numbers via text builder using methods of Convertable type class. It is about 10-15x faster.
Fast, efficient support for converting between double precision floating point values and text.
These functions are about 30 times faster than the default show implementation for the Double type.
- 4 values
- Packagedouble-conversion-2.0.5.0
- Exports4
- LanguageHaskell2010
- LicenceBSD-2-Clause
- SourceText.hs
Compute a decimal representation with a fixed number of digits after the decimal point. The last emitted digit is rounded.
Compute precision leading digits of the given value either in
exponential or decimal format. The last computed digit is rounded.
Compute the shortest string of digits that correctly represent the input number.