HORIZON HASKELLDocslts/ghc-10.0.x8174fa42026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8174fa4 · 2026-10-11

Modulescientific-0.3.9.0Haskell2010

Data.Text.Lazy.Builder.Scientific

  • 1 type
  • 2 values
  • Packagescientific-0.3.9.0
  • Exports3
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceScientific.hs

A Text 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.

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.4 · Data.Text.Lazy.Builder.RealFloat
  • Enum FPFormatDefined in text-2.1.4 · Data.Text.Lazy.Builder.RealFloat
  • Read FPFormatDefined in text-2.1.4 · Data.Text.Lazy.Builder.RealFloat
  • Show FPFormatDefined in text-2.1.4 · Data.Text.Lazy.Builder.RealFloat