HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Modulererebase-1.21.2Haskell2010

Data.ByteString.Builder.Scientific

  • 1 type
  • 2 values
  • Packagererebase-1.21.2
  • Exports3
  • LanguageHaskell2010
  • LicenceMIT
  • SourceRealFloat.hs
datadata FPFormat
#

Control the rendering of floating point numbers.

Constructors

  • Exponent

    Scientific notation (e.g. 2.3e123).

  • Fixed

    Standard decimal notation.

  • Generic

    Use decimal notation for values between 0.1 and 9,999,999, and scientific notation otherwise.

Instances4Bounded, Enum, Read, Show
  • Bounded FPFormatDefined in text-2.1.3 · Data.Text.Lazy.Builder.RealFloat
  • Enum FPFormatDefined in text-2.1.3 · Data.Text.Lazy.Builder.RealFloat
  • Read FPFormatDefined in text-2.1.3 · Data.Text.Lazy.Builder.RealFloat
  • Show FPFormatDefined in text-2.1.3 · Data.Text.Lazy.Builder.RealFloat

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.