RealFrac package:ihaskell

Extracting components of fractions.