text-0.11.3.1: An efficient packed Unicode text type.
Data.Text.Lazy.Builder.RealFloat
Description
Write a floating point value to a Builder.
Builder
Synopsis
data FPFormat Source
Control the rendering of floating point numbers.
Constructors
Scientific notation (e.g. 2.3e123).
2.3e123
Standard decimal notation.
Use decimal notation for values between 0.1 and 9,999,999, and scientific notation otherwise.
0.1
9,999,999
Instances
realFloat :: RealFloat a => a -> BuilderSource
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
formatRealFloatSource
Arguments
Number of decimal places to render.