HORIZON HASKELLDocslts/ghc-10.0.x8fef28d2026-11-02Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8fef28d · 2026-11-02

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.

Synopsis
  • 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, …