On a TI84 calculator, if you take a decimal, press "MATH", then select ">FRAC", it will attempt to convert the decimal into a fraction. How does this work from a programming point of view? I would do a google search but I don't know what to search for as googling "how does the fraction function on a ti-84 calculator work" doesn't work. I've been trying to write various programs in C++ to help with my math class and I have repeatedly realized that this ability would be very helpful.