Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Synopsis
- class Num a => Fractional a where
- (^^) :: (Fractional a, Integral b) => a -> b -> a
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
Instances
(^^) :: (Fractional a, Integral b) => a -> b -> a infixr 8 #
raise a number to an integral power