interface Fraction <A> Source #
Fractional number type-class
type | A | The type for which fractional operations are being defined. |
class TypeClassExtensions Source #
method A FromRational <A> (this Fraction<A> frac, Ratio<int> x) Source #
Generates a fractional value from an integer ratio.
param | x | The ratio to convert |
returns | The equivalent of x in the implementing type. |