Let x be the given real number. The first step in finding the continued fraction for x is to find the largest integer a less than or equal to x. Sometimes this is called the "greatest integer" in x and sometimes it's called the "floor" of x. We'll call it the floor. For example, the floor of 7/3 is 2. Note that the floor of an integer is that integer itself. For example, the floor of 3 is 3.
This figure utilizes the Geometry Applet.
April, 2006.
David E. Joyce
Department of Mathematics and Computer Science
Clark University
Worcester, MA 01610
The address of this file is http://aleph0.clarku.edu/~djoyce/java/Geometry/contfract.html