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