Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- newtype Half = Half {}
- isZero :: Half -> Bool
- fromHalf :: Half -> Float
- toHalf :: Float -> Half
- pattern POS_INF :: Half
- pattern NEG_INF :: Half
- pattern QNaN :: Half
- pattern SNaN :: Half
- pattern HALF_MIN :: Half
- pattern HALF_NRM_MIN :: Half
- pattern HALF_MAX :: Half
- pattern HALF_EPSILON :: Half
- pattern HALF_DIG :: forall a. (Eq a, Num a) => a
- pattern HALF_MIN_10_EXP :: forall a. (Eq a, Num a) => a
- pattern HALF_MAX_10_EXP :: forall a. (Eq a, Num a) => a
Documentation
Instances
Eq Half | |
Floating Half | |
Fractional Half | |
Num Half | |
Ord Half | |
Read Half | |
Real Half | |
Defined in Numeric.Half toRational :: Half -> Rational # | |
RealFloat Half | |
Defined in Numeric.Half floatRadix :: Half -> Integer # floatDigits :: Half -> Int # floatRange :: Half -> (Int, Int) # decodeFloat :: Half -> (Integer, Int) # encodeFloat :: Integer -> Int -> Half # significand :: Half -> Half # scaleFloat :: Int -> Half -> Half # isInfinite :: Half -> Bool # isDenormalized :: Half -> Bool # isNegativeZero :: Half -> Bool # | |
RealFrac Half | |
Show Half | |
Generic Half | |
Lift Half | |
Storable Half | |
Defined in Numeric.Half | |
NFData Half | |
Defined in Numeric.Half | |
Serialise Half | Since: serialise-0.2.0.0 |
type Rep Half | |
Defined in Numeric.Half |
pattern HALF_NRM_MIN :: Half #
Smallest positive normalized half
pattern HALF_EPSILON :: Half #
Smallest positive e for which half (1.0 + e) != half (1.0)
pattern HALF_DIG :: forall a. (Eq a, Num a) => a #
Number of base 10 digits that can be represented without change
pattern HALF_MIN_10_EXP :: forall a. (Eq a, Num a) => a #
pattern HALF_MAX_10_EXP :: forall a. (Eq a, Num a) => a #