| Copyright | (c) Daniel Fischer 2010 | 
|---|---|
| License | see libraries/base/LICENSE | 
| Maintainer | cvs-ghc@haskell.org | 
| Stability | internal | 
| Portability | non-portable (GHC Extensions) | 
| Safe Haskell | Trustworthy | 
| Language | Haskell2010 | 
GHC.Float.RealFracMethods
Description
Synopsis
- properFractionDoubleInteger :: Double -> (Integer, Double)
 - truncateDoubleInteger :: Double -> Integer
 - floorDoubleInteger :: Double -> Integer
 - ceilingDoubleInteger :: Double -> Integer
 - roundDoubleInteger :: Double -> Integer
 - properFractionDoubleInt :: Double -> (Int, Double)
 - floorDoubleInt :: Double -> Int
 - ceilingDoubleInt :: Double -> Int
 - roundDoubleInt :: Double -> Int
 - double2Int :: Double -> Int
 - int2Double :: Int -> Double
 - properFractionFloatInteger :: Float -> (Integer, Float)
 - truncateFloatInteger :: Float -> Integer
 - floorFloatInteger :: Float -> Integer
 - ceilingFloatInteger :: Float -> Integer
 - roundFloatInteger :: Float -> Integer
 - properFractionFloatInt :: Float -> (Int, Float)
 - floorFloatInt :: Float -> Int
 - ceilingFloatInt :: Float -> Int
 - roundFloatInt :: Float -> Int
 - float2Int :: Float -> Int
 - int2Float :: Int -> Float
 
Double methods
Integer results
floorDoubleInteger :: Double -> Integer Source #
ceilingDoubleInteger :: Double -> Integer Source #
roundDoubleInteger :: Double -> Integer Source #
Int results
floorDoubleInt :: Double -> Int Source #
ceilingDoubleInt :: Double -> Int Source #
roundDoubleInt :: Double -> Int Source #
Double/Int conversions, wrapped primops
double2Int :: Double -> Int Source #
int2Double :: Int -> Double Source #
Float methods
Integer results
truncateFloatInteger :: Float -> Integer Source #
floorFloatInteger :: Float -> Integer Source #
ceilingFloatInteger :: Float -> Integer Source #
roundFloatInteger :: Float -> Integer Source #
Int results
floorFloatInt :: Float -> Int Source #
ceilingFloatInt :: Float -> Int Source #
roundFloatInt :: Float -> Int Source #