HORIZON HASKELLDocslts/ghc-10.0.x2b276322026-10-31Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 2b27632 · 2026-10-31

Modulehalf-0.3.3Haskell2010

Numeric.Half.Internal

Half-precision floating-point values. These arise commonly in GPU work and it is useful to be able to compute them and compute with them on the CPU as well.

Contents
  1. Patterns
  2. Pure conversions
Synopsis
  • Packagehalf-0.3.3
  • Exports17
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceInternal.hs
newtypenewtype Half

A half-precision floating point value

Constructors

Instances16Eq, Floating, Fractional, Num, Ord, Read, …

Patterns

patternpattern HALF_DIG :: (Eq a, Num a) => a

Number of base 10 digits that can be represented without change

patternpattern HALF_MIN_10_EXP :: (Eq a, Num a) => a

Minimum positive integer such that 10 raised to that power is a normalized half

patternpattern HALF_MAX_10_EXP :: (Eq a, Num a) => a

Maximum positive integer such that 10 raised to that power is a normalized half

Pure conversions