Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Synopsis
- class (Num a, Ord a) => Real a where
- div' :: (Real a, Integral b) => a -> a -> b
- mod' :: Real a => a -> a -> a
- divMod' :: (Real a, Integral b) => a -> a -> (b, a)
- realToFrac :: (Real a, Fractional b) => a -> b
- showSigned :: Real a => (a -> ShowS) -> Int -> a -> ShowS
- readSigned :: Real a => ReadS a -> ReadS a
Real
class (Num a, Ord a) => Real a where #
toRational :: a -> Rational #
the rational equivalent of its real argument with full precision
Instances
divMod' :: (Real a, Integral b) => a -> a -> (b, a) #
generalisation of divMod
to any instance of Real
realToFrac :: (Real a, Fractional b) => a -> b #
general coercion to fractional types
Show
:: Real a | |
=> (a -> ShowS) | a function that can show unsigned values |
-> Int | the precedence of the enclosing context |
-> a | the value to show |
-> ShowS |
Converts a possibly-negative Real
value to a string.