Question: python 3 Converting a decimal to a fraction 10 points Although computers generally represent numbers as decimals, it is often convenient to express values as

python 3
Converting a decimal to a fraction 10 points Although computers generally represent numbers as decimals, it is often convenient to express values as fractions. If we desire to convert a decimal to a fraction, we need to follow a two-step process .Starting with the number itself, multiply by ten repeatedly until no values remain after the decimal point. This is the numerator. Keep the multiplier as the denominator 2. Simplify the fraction. For instance, for 0.75: 1. Multiply by ten repeatedly: 0.75 x 10x 10 75 Thus the numerator is 75 and the denominator is 10x 10 100 2. Simplify the fraction: 1.Find the factors of the numerator and the denominator. 75 (1.3,5.25,75) 100,2,4,5, 10,20,25,50, 100] 2. Find the greatest common factor of each and divide both by it 75+25 10025 4 0.75 4
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
