i need to write a function that reduces a fraction to proper form. For example, a fraction with a value of 0 2/6 would reduce to 0 1/3 and a fraction with a value of 4 18/4 would reduce to 8 1/2. If any one could help it would be much apreciated.
There are two fraction implementations in the Sourcecode section. You might have a look at those. However, IMHO the coding style in those examples are not very good.