File tree 1 file changed +8
-0
lines changed 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,14 @@ realFloat :: (RealFloat a) => a -> Builder
46
46
{-# SPECIALIZE realFloat :: Double -> Builder #-}
47
47
realFloat x = formatRealFloat Generic Nothing x
48
48
49
+ -- | Encode a signed 'RealFloat' according to 'FPFormat' and optionally requested precision.
50
+ --
51
+ -- This corresponds to the @show{E,F,G}Float@ operations provided by @base@'s "Numeric" module.
52
+ --
53
+ -- __NOTE__: The functions in @base-4.12@ changed the serialisation in
54
+ -- case of a @Just 0@ precision; this version of @text@ still provides
55
+ -- the serialisation as implemented in @base-4.11@. The next major
56
+ -- version of @text@ will switch to the more correct @base-4.12@ serialisation.
49
57
formatRealFloat :: (RealFloat a ) =>
50
58
FPFormat
51
59
-> Maybe Int -- ^ Number of decimal places to render.
You can’t perform that action at this time.
0 commit comments