Hoogle Search
Within LTS Haskell 24.21 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
roundSimple :: (C a, C b) => a -> bnumeric-prelude Algebra.RealRing This function rounds to the closest integer. For fraction x == 0.5 it rounds away from zero. This function is not the result of an ingenious mathematical insight, but is simply a kind of rounding that is the fastest on IEEE floating point architectures.
fromIntegral :: (C a, C b) => a -> bnumeric-prelude Algebra.ToInteger No documentation available.
realToField :: (C a, C b) => a -> bnumeric-prelude Algebra.ToRational It should hold
realToField = fromRational' . toRational
but it should be much more efficient for particular pairs of types, such as converting Float to Double. This achieved by optimizer rules.fromIntegral :: (C a, C b) => a -> bnumeric-prelude NumericPrelude No documentation available.
truncate :: (C a, C b) => a -> bnumeric-prelude NumericPrelude No documentation available.
-
numeric-prelude NumericPrelude No documentation available.
ceiling :: (C a, C b) => a -> bnumeric-prelude NumericPrelude \x -> ceiling (-x) == negate (floor (x::Double) :: Integer)
\x -> ceiling (-x) == negate (floor (x::Rational) :: Integer)
-
numeric-prelude NumericPrelude \x -> ceiling (-x) == negate (floor (x::Double) :: Integer)
\x -> ceiling (-x) == negate (floor (x::Rational) :: Integer)
truncate :: (C a, C b) => a -> bnumeric-prelude NumericPrelude.Numeric No documentation available.
-
numeric-prelude NumericPrelude.Numeric No documentation available.