| Copyright | (c) Daniel Fischer 2010 |
|---|---|
| License | see libraries/base/LICENSE |
| Maintainer | [email protected] |
| Stability | internal |
| Portability | non-portable (GHC Extensions) |
| Safe Haskell | Safe |
| Language | Haskell2010 |
Methods for the RealFrac instances for Float and Double, with specialised versions for Int.
Moved to their own module to not bloat GHC.Float further.
The API of this module is unstable and not meant to be consumed by the general public. If you absolutely must depend on it, make sure to use a tight upper bound, e.g., base < 4.X rather than base < 5, because the interface can change rapidly without much warning.
properFractionDoubleInteger :: Double -> (Integer, Double) Source
truncateDoubleInteger :: Double -> Integer Source
floorDoubleInteger :: Double -> Integer Source
ceilingDoubleInteger :: Double -> Integer Source
roundDoubleInteger :: Double -> Integer Source
properFractionDoubleInt :: Double -> (Int, Double) Source
floorDoubleInt :: Double -> Int Source
ceilingDoubleInt :: Double -> Int Source
roundDoubleInt :: Double -> Int Source
double2Int :: Double -> Int Source
int2Double :: Int -> Double Source
properFractionFloatInteger :: Float -> (Integer, Float) Source
truncateFloatInteger :: Float -> Integer Source
floorFloatInteger :: Float -> Integer Source
ceilingFloatInteger :: Float -> Integer Source
roundFloatInteger :: Float -> Integer Source
properFractionFloatInt :: Float -> (Int, Float) Source
floorFloatInt :: Float -> Int Source
ceilingFloatInt :: Float -> Int Source
roundFloatInt :: Float -> Int Source
© The University of Glasgow and others
Licensed under a BSD-style license (see top of the page).
https://downloads.haskell.org/~ghc/9.12.1/docs/libraries/base-4.21.0.0-8e62/GHC-Float-RealFracMethods.html