Safe Haskell | None |
---|---|
Language | GHC2021 |
Bindings to the C math library.
Follows the naming scheme of the C functions when feasible.
Synopsis
- roundFloat :: Float -> Float
- ceilFloat :: Float -> Float
- floorFloat :: Float -> Float
- roundDouble :: Double -> Double
- ceilDouble :: Double -> Double
- floorDouble :: Double -> Double
- nextafterf :: Float -> Float -> Float
- nextafter :: Double -> Double -> Double
- lgamma :: Double -> Double
- lgammaf :: Float -> Float
- tgamma :: Double -> Double
- tgammaf :: Float -> Float
- erf :: Double -> Double
- erff :: Float -> Float
- erfc :: Double -> Double
- erfcf :: Float -> Float
- cbrt :: Double -> Double
- cbrtf :: Float -> Float
- hypot :: Double -> Double -> Double
- hypotf :: Float -> Float -> Float
- ldexp :: Double -> CInt -> Double
- ldexpf :: Float -> CInt -> Float
- copysign :: Double -> Double -> Double
- copysignf :: Float -> Float -> Float
Documentation
roundFloat :: Float -> Float Source #
Round a single-precision floating point number correctly.
ceilFloat :: Float -> Float Source #
Round a single-precision floating point number upwards correctly.
floorFloat :: Float -> Float Source #
Round a single-precision floating point number downwards correctly.
roundDouble :: Double -> Double Source #
Round a double-precision floating point number correctly.
ceilDouble :: Double -> Double Source #
Round a double-precision floating point number upwards correctly.
floorDouble :: Double -> Double Source #
Round a double-precision floating point number downwards correctly.
nextafterf :: Float -> Float -> Float Source #
The next representable single-precision floating-point value in the given direction.