Answer
Converting a decimal into fraction could not be easier. 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.
2.34 = 2 34/100
The only step that you need to take is to possibly reduce the fractional part. In the example above, both 34 and 100 are divisible by 2. So, the fractional part reduces to 17/50.
2.34 = 2 34/100 = 2 17/50