-- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/

-- | Signed 15.16 precision fixed point arithmetic
--   
--   Signed 15.16 precision fixed point arithmetic
@package fixed
@version 0.2.1.1

-- | 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.
module Numeric.Fixed

-- | A signed 2s complement 15.16 scale fixed precision number
newtype {-# CTYPE "signed int" #-} Fixed
Fixed :: CInt -> Fixed
[getFixed] :: Fixed -> CInt

-- | Convert from a Fixed precision value to a Double
fromFixed :: Fixed -> Double

-- | Convert from a Double to a Fixed precision value
toFixed :: Double -> Fixed
instance Foreign.Storable.Storable Numeric.Fixed.Fixed
instance GHC.Classes.Ord Numeric.Fixed.Fixed
instance GHC.Classes.Eq Numeric.Fixed.Fixed
instance GHC.Show.Show Numeric.Fixed.Fixed
instance GHC.Num.Num Numeric.Fixed.Fixed
instance GHC.Enum.Enum Numeric.Fixed.Fixed
instance GHC.Enum.Bounded Numeric.Fixed.Fixed
instance GHC.Real.Fractional Numeric.Fixed.Fixed
instance GHC.Real.Real Numeric.Fixed.Fixed
instance GHC.Real.RealFrac Numeric.Fixed.Fixed
instance GHC.Float.Floating Numeric.Fixed.Fixed
instance GHC.Float.RealFloat Numeric.Fixed.Fixed
