|
Data.Ratio | Portability | portable | Stability | provisional | Maintainer | libraries@haskell.org |
|
|
|
|
|
Description |
Standard functions on rational numbers
|
|
Synopsis |
|
|
|
Documentation |
|
data Ratio a |
|
|
type Rational = Ratio Integer |
Arbitrary-precision rational numbers, represented as a ratio of
two Integer values. A rational number may be constructed using
the % operator. |
|
(%) :: (Integral a) => a -> a -> Ratio a |
|
numerator :: (Integral a) => Ratio a -> a |
|
denominator :: (Integral a) => Ratio a -> a |
|
approxRational :: (RealFrac a) => a -> a -> Rational |
|
Produced by Haddock version 0.4 |