Converting a decimal into fraction could not be easier. (there is a solver for this in this module, also). A decimal such as 2.34 has two parts, 2 and .34. 2 is the integer part and .34 is the fractional part. The fractional part is an abbreviation for a fraction with the base (denominator) of 1 plus as many zeroes as there are digits in the fractional part. for .34, with TWO digits, the denominator is 1 followed by TWO zeroes.
The only step that you need to take is to possibly reduce the fractional part. In the example above, both 34 and 100 are diisible by 2. So, the fractional part reduces to

.