To turn a continued fraction of a number back into its convergents, rather than painstakingly multiplying them out one by one:
http://en.wikipedia.org/wiki/Generalized_continued_fraction#Fundamental_recurrence_formulas
via Terry Gagen (USyd) via Arnold Ross