-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | ieee-utils -- -- IEEE 754 (Standard for Binary Floating-Point Arithmetic) Utilities. @package ieee-utils @version 0.3 module Numeric.IEEE.FloatExceptions -- | Returns all exceptions set in the fpu's exception register. getFloatExcepts :: IO [ArithException] -- | Clears the specified exceptions from the fpu's exception register. clearFloatExcepts :: [ArithException] -> IO Bool -- | Arithmetic exceptions. data ArithException :: * Overflow :: ArithException Underflow :: ArithException LossOfPrecision :: ArithException DivideByZero :: ArithException Denormal :: ArithException instance Enum ArithException module Numeric.IEEE.RoundMode data RoundMode ToNearest :: RoundMode Upward :: RoundMode Downward :: RoundMode TowardZero :: RoundMode -- | Gets the fpu's current rounding mode. getRound :: IO RoundMode -- | Sets the fpu's rounding mode. Returns True if successful. setRound :: RoundMode -> IO Bool instance Eq RoundMode instance Ord RoundMode instance Show RoundMode instance Read RoundMode instance Enum RoundMode