A fraction is written in terms of two parts: the number on top is called the numerator and the number on the bottom is called the denominator. We can use the division method to solve this question. To get a decimal, simply divide the numerator 127 by the denominator 7:
127 (numerator) ÷ 7 (denominator) = 18.14
As a result, you get 18.14 as your answer when you convert 18 1/7 (or 127/7) to a decimal.