Hoogle Search

Within LTS Haskell 24.66 (ghc-9.10.3)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

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

    numeric-prelude Algebra.RealRing

    No documentation available.

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

    numeric-prelude Algebra.RealRing

    No documentation available.

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

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

    numeric-prelude Algebra.ToInteger

    No documentation available.

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

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

    numeric-prelude NumericPrelude

    No documentation available.

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

    numeric-prelude NumericPrelude

    No documentation available.

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

    numeric-prelude NumericPrelude

    No documentation available.

  9. 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)
    

  10. 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)
    

Page 10 of many | Previous | Next