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.

  1. roundSimple :: (C a, C b) => a -> b

    numeric-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.

  2. fromIntegral :: (C a, C b) => a -> b

    numeric-prelude Algebra.ToInteger

    No documentation available.

  3. realToField :: (C a, C b) => a -> b

    numeric-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.

  4. fromIntegral :: (C a, C b) => a -> b

    numeric-prelude NumericPrelude

    No documentation available.

  5. truncate :: (C a, C b) => a -> b

    numeric-prelude NumericPrelude

    No documentation available.

  6. round :: (C a, C b) => a -> b

    numeric-prelude NumericPrelude

    No documentation available.

  7. ceiling :: (C a, C b) => a -> b

    numeric-prelude NumericPrelude

    \x -> ceiling (-x) == negate (floor (x::Double) :: Integer)
    
    \x -> ceiling (-x) == negate (floor (x::Rational) :: Integer)
    

  8. floor :: (C a, C b) => a -> b

    numeric-prelude NumericPrelude

    \x -> ceiling (-x) == negate (floor (x::Double) :: Integer)
    
    \x -> ceiling (-x) == negate (floor (x::Rational) :: Integer)
    

  9. truncate :: (C a, C b) => a -> b

    numeric-prelude NumericPrelude.Numeric

    No documentation available.

  10. round :: (C a, C b) => a -> b

    numeric-prelude NumericPrelude.Numeric

    No documentation available.

Page 7 of many | Previous | Next