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