Converting 0.125 to fraction we get:

Converting 0.125 to fraction we get:

Explanation

 0.125 is the same as 125/1000. This is because we have to remove the decimal point before creating a fraction. So 0.125 times by 1000 is 125 and at this point the decimal point has been removed.

125/100=1/8