How to find a fraction from a decimal