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 126 by the denominator 31:
126 (numerator) ÷ 31 (denominator) = 4.06
As a result, you get 4.06 as your answer when you convert 4 2/31 (or 126/31) to a decimal.