interface Fraction <A> Source #
Fractional number trait
type | A | The type for which fractional operations are being defined. |
method A FromRational (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. |