base-compat-0.9.1: A compatibility layer for base

Safe HaskellSafe
LanguageHaskell98

Data.Ratio.Compat

Synopsis

Documentation

denominator :: Ratio a -> a

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

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