| Copyright | (c) The University of Glasgow 1994-2002 |
|---|---|
| License | see libraries/base/LICENSE |
| Safe Haskell | Trustworthy |
| Language | Haskell2010 |
Write a floating point value to a Builder.
Control the rendering of floating point numbers.
| Exponent | Scientific notation (e.g. |
| Fixed | Standard decimal notation. |
| Generic | Use decimal notation for values between |
| Bounded FPFormat Source | |
Defined in Data.Text.Lazy.Builder.RealFloat | |
| Enum FPFormat Source | |
Defined in Data.Text.Lazy.Builder.RealFloat | |
| Read FPFormat Source | |
| Show FPFormat Source | |
realFloat :: RealFloat a => a -> Builder Source
Show a signed RealFloat value to full precision, using standard decimal notation for arguments whose absolute value lies between 0.1 and 9,999,999, and scientific notation otherwise.
| :: RealFloat a | |
| => FPFormat | |
| -> Maybe Int | Number of decimal places to render. |
| -> a | |
| -> Builder |
Encode a signed RealFloat according to FPFormat and optionally requested precision.
This corresponds to the show{E,F,G}Float operations provided by base's Numeric module.
NOTE: The functions in base-4.12 changed the serialisation in case of a Just 0 precision; this version of text still provides the serialisation as implemented in base-4.11. The next major version of text will switch to the more correct base-4.12 serialisation.
© The University of Glasgow and others
Licensed under a BSD-style license (see top of the page).
https://downloads.haskell.org/~ghc/9.12.1/docs/libraries/text-2.1.2-84f9/Data-Text-Lazy-Builder-RealFloat.html