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
properFractionDoubleInteger :: Double -> (Integer, Double) #
truncateDoubleInteger :: Double -> Integer #
floorDoubleInteger :: Double -> Integer #
ceilingDoubleInteger :: Double -> Integer #
roundDoubleInteger :: Double -> Integer #
Int results
properFractionDoubleInt :: Double -> (Int, Double) #
floorDoubleInt :: Double -> Int #
ceilingDoubleInt :: Double -> Int #
roundDoubleInt :: Double -> Int #
Double/Int conversions, wrapped primops
double2Int :: Double -> Int #
int2Double :: Int -> Double #
Float methods
Integer results
properFractionFloatInteger :: Float -> (Integer, Float) #
truncateFloatInteger :: Float -> Integer #
floorFloatInteger :: Float -> Integer #
ceilingFloatInteger :: Float -> Integer #
roundFloatInteger :: Float -> Integer #
Int results
properFractionFloatInt :: Float -> (Int, Float) #
floorFloatInt :: Float -> Int #
ceilingFloatInt :: Float -> Int #
roundFloatInt :: Float -> Int #