I'm using the Decimal to Fraction Routine listed on your site: http://tibasicdev.wikidot.com/decimal-to-fraction

It works great in almost every situation, except when I ask it to calculate 2/3 (or 4/6, 6/9, etc.). When I do that, the answer is returned as 2/2. Why does this happen, and is there any solution?