base-compat-0.9.0: A compatibility layer for base

Safe HaskellSafe
LanguageHaskell98

Data.Ratio.Compat

Synopsis

Documentation

denominator :: Ratio a -> a Source

Extract the denominator of the ratio in reduced form: the numerator and denominator have no common factor and the denominator is positive.

numerator :: Ratio a -> a Source

Extract the numerator of the ratio in reduced form: the numerator and denominator have no common factor and the denominator is positive.