We look at the division of 31793142 by 502 
Our goal is to divide 31793142 by 502.

Advancing to step 1:
502 can be fit into 3 0 times, resulting in a remainder of 3.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Subtracting 0 from 3 leaves us with 3.
Append the next digit (1) from the dividend to 3 and continue with: 31 / 502

On to step 2:
If we divide 31 by 502, we get 0 and a remainder of 31.
Put 0 as the next digit of the answer. 
Result so far: 0.0
The remainder is 31 after subtracting 0 from 31.
Bring next digit (7) of the dividend behind the 31 and repeat the process: 317 / 502

On to step 3:
502 goes into 317 0 times with a remainder of 317.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
The remainder is 317 after subtracting 0 from 317.
Append the next digit (9) from the dividend to 317 and continue with: 3179 / 502

Advancing to step 4:
3179 divided by 502 is 6 with a remainder of 167.
The next digit of our result is 6. 
Result so far: 6.0
Subtract 3012 from 3179 to get 167.
Grab the next digit (3) from the dividend, add it to 167, then carry on: 1673 / 502

Going ahead to step 5:
1673 divided by 502 is 3 with a remainder of 167.
The next digit of our result is 3. 
Result so far: 63.0
The remainder is 167 after subtracting 1506 from 1673.
Fetch the next digit (1) from the dividend, attach it to 167 and continue: 1671 / 502

Going ahead to step 6:
When dividing 1671 by 502, we get 3 with a remainder of 165.
The number 3 becomes the next digit in our result. 
Result so far: 633.0
Deduct 1506 from 1671 and we're left with 165.
Bring next digit (4) of the dividend behind the 165 and repeat the process: 1654 / 502

Advancing to step 7:
1654 divided by 502 is 3 with a remainder of 148.
Use 3 as the next digit of our solution. 
Result so far: 6333.0
If we subtract 1506 from 1654, we get 148.
Append the next digit (2) from the dividend to 148 and continue with: 1482 / 502

On to step 8:
If we divide 1482 by 502, we get 2 and a remainder of 478.
Record the quotient 2 as the next digit in the result. 
Result so far: 63332.0
The remainder is 478 after subtracting 1004 from 1482.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4780, and continue the process.

Advancing to step 9:
502 goes into 4780 9 times with a remainder of 262.
The number 9 becomes the next digit in our result. 
Result so far: 63332.9
If we take 4518 away from 4780, we end up with 262.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2620, and continue the process.

Step 10:
502 can be fit into 2620 5 times, resulting in a remainder of 110.
Put 5 as the next digit of the answer. 
Result so far: 63332.95
Subtract 2510 from 2620 to get 110.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1100, and continue the process.

Step 11:
502 can be fit into 1100 2 times, resulting in a remainder of 96.
Write down 2 as next digit of the result. 
Result so far: 63332.952
Subtract 1004 from 1100 to get 96.
Since there are no more digits in the dividend, we add a zero to the remainder making it 960, and continue the process.

Step 12:
960 divided by 502 is 1 with a remainder of 458.
Use 1 as the next digit of our solution. 
Result so far: 63332.9521
The remainder is 458 after subtracting 502 from 960.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4580, and continue the process.

Step 13:
502 can be fit into 4580 9 times, resulting in a remainder of 62.
Put 9 as the next digit of the answer. 
Result so far: 63332.95219
Subtract 4518 from 4580 to get 62.
Since there are no more digits in the dividend, we add a zero to the remainder making it 620, and continue the process.

Moving on to step 14:
502 can be fit into 620 1 times, resulting in a remainder of 118.
Put 1 as the next digit of the answer. 
Result so far: 63332.952191
Subtracting 502 from 620 leaves us with 118.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1180, and continue the process.

Advancing to step 15:
If we divide 1180 by 502, we get 2 and a remainder of 176.
Put 2 as the next digit of the answer. 
Result so far: 63332.9521912
Subtract 1004 from 1180 to get 176.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1760, and continue the process.

Advancing to step 16:
When dividing 1760 by 502, we get 3 with a remainder of 254.
Use 3 as the next digit of our solution. 
Result so far: 63332.95219123
Subtract 1506 from 1760 to get 254.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2540, and continue the process.

Our division results in 63332.95219123 with a remaining 2.54e-07.