We look at the division of 502190 by 31 
We want to divide 502190 by 31.

Going ahead to step 1:
5 divided by 31 is 0 with a remainder of 5.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
The remainder is 5 after subtracting 0 from 5.
Include the next digit (0) from the dividend after 5, then repeat: 50 / 31

On to step 2:
31 goes into 50 1 times with a remainder of 19.
Use 1 as the next digit of our solution. 
Result so far: 1.0
Subtract 31 from 50 to get 19.
Append the next digit (2) from the dividend to 19 and continue with: 192 / 31

Going ahead to step 3:
When dividing 192 by 31, we get 6 with a remainder of 6.
The number 6 becomes the next digit in our result. 
Result so far: 16.0
Deduct 186 from 192 and we're left with 6.
Include the next digit (1) from the dividend after 6, then repeat: 61 / 31

Let's proceed to step 4:
61 divided by 31 is 1 with a remainder of 30.
Put 1 as the next digit of the answer. 
Result so far: 161.0
Deduct 31 from 61 and we're left with 30.
Fetch the next digit (9) from the dividend, attach it to 30 and continue: 309 / 31

Let's proceed to step 5:
The number 31 fits into 309 9 times, leaving a remainder of 30.
Record the quotient 9 as the next digit in the result. 
Result so far: 1619.0
If we take 279 away from 309, we end up with 30.
Fetch the next digit (0) from the dividend, attach it to 30 and continue: 300 / 31

On to step 6:
If we divide 300 by 31, we get 9 and a remainder of 21.
Write down 9 as next digit of the result. 
Result so far: 16199.0
If we subtract 279 from 300, we get 21.
Since there are no more digits in the dividend, we add a zero to the remainder making it 210, and continue the process.

Going ahead to step 7:
The number 31 fits into 210 6 times, leaving a remainder of 24.
Put 6 as the next digit of the answer. 
Result so far: 16199.6
If we take 186 away from 210, we end up with 24.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

Going ahead to step 8:
When dividing 240 by 31, we get 7 with a remainder of 23.
Write down 7 as next digit of the result. 
Result so far: 16199.67
Subtract 217 from 240 to get 23.
Since there are no more digits in the dividend, we add a zero to the remainder making it 230, and continue the process.

Going ahead to step 9:
The number 31 fits into 230 7 times, leaving a remainder of 13.
The next digit of our result is 7. 
Result so far: 16199.677
Subtracting 217 from 230 leaves us with 13.
Since there are no more digits in the dividend, we add a zero to the remainder making it 130, and continue the process.

Our division results in 16199.677 with a remaining 0.0013.