Continued fraction (source code)

= Continued fraction
{wiki}

A simple continued fraction recursively expands a real number by taking integer parts and reciprocals. Its convergents are exceptionally good rational approximations.