| Safe Haskell | Safe |
|---|---|
| Language | Haskell2010 |
Numeric.Fractional
Synopsis
- class Num a => Fractional a where
Documentation
class Num a => Fractional a where #
Fractional numbers, supporting real division.
Minimal complete definition
fromRational, (recip | (/))
Methods
fractional division
reciprocal fraction
fromRational :: Rational -> a #
Conversion from a Rational (that is ).
A floating literal stands for an application of Ratio IntegerfromRational
to a value of type Rational, so such literals have type
(.Fractional a) => a