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

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

Modulefixed-0.3Haskell98

Numeric.Fixed

Fixed precision arithmetic. This format is the same format used by OpenGL ES 1's GLfixed data type:

One sign bit, 15 bits to the left of the decimal place and 16 bits to the right packed into a 32-bit integer.

  • 1 type
  • 2 values
  • Packagefixed-0.3
  • Exports3
  • LanguageHaskell98
  • LicenceBSD-3-Clause
  • SourceFixed.hs
newtypenewtype Fixed
#

A signed 2s complement 15.16 scale fixed precision number

Constructors

Instances12Bounded, Enum, Eq, Floating, Fractional, Num, …