Data.Ratio.Compat

base-compat-0.9.0: A compatibility layer for base

Safe Haskell | Safe
Language | Haskell98

Data.Ratio.Compat

Synopsis

- denominator :: Ratio a -> a
- numerator :: Ratio a -> a

# 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.