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