Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Synopsis
- scientificBuilder :: Scientific -> Builder
- formatScientificBuilder :: FPFormat -> Maybe Int -> Scientific -> Builder
- data FPFormat
Documentation
scientificBuilder :: Scientific -> Builder Source #
A
ByteString
Builder
which renders a scientific number to full
precision, using standard decimal notation for arguments whose
absolute value lies between
0.1
and
9,999,999
, and scientific
notation otherwise.
formatScientificBuilder Source #
:: FPFormat | |
-> Maybe Int |
Number of decimal places to render. |
-> Scientific | |
-> Builder |
Like
scientificBuilder
but provides rendering options.
Control the rendering of floating point numbers.
Exponent |
Scientific notation (e.g.
|
Fixed |
Standard decimal notation. |
Generic |
Use decimal notation for values between
|
Instances
Enum FPFormat | |
Defined in Data.Text.Lazy.Builder.RealFloat succ :: FPFormat -> FPFormat Source # pred :: FPFormat -> FPFormat Source # toEnum :: Int -> FPFormat Source # fromEnum :: FPFormat -> Int Source # enumFrom :: FPFormat -> [ FPFormat ] Source # enumFromThen :: FPFormat -> FPFormat -> [ FPFormat ] Source # enumFromTo :: FPFormat -> FPFormat -> [ FPFormat ] Source # enumFromThenTo :: FPFormat -> FPFormat -> FPFormat -> [ FPFormat ] Source # |
|
Read FPFormat | |
Show FPFormat | |