Let's divide 642492 by 31
Let's see how many times 31 fits into 642492.

Advancing to step 1:
6 divided by 31 is 0 with a remainder of 6.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtract 0 from 6 to get 6.
Append the next digit (4) from the dividend to 6 and continue with: 64 / 31

Advancing to step 2:
When dividing 64 by 31, we get 2 with a remainder of 2.
The next digit of our result is 2. 
Result so far: 2.0
If we take 62 away from 64, we end up with 2.
Bring next digit (2) of the dividend behind the 2 and repeat the process: 22 / 31

Let's proceed to step 3:
When dividing 22 by 31, we get 0 with a remainder of 22.
Write down 0 as next digit of the result. 
Result so far: 20.0
Deduct 0 from 22 and we're left with 22.
Append the next digit (4) from the dividend to 22 and continue with: 224 / 31

Going ahead to step 4:
The number 31 fits into 224 7 times, leaving a remainder of 7.
Use 7 as the next digit of our solution. 
Result so far: 207.0
If we subtract 217 from 224, we get 7.
Take the next digit (9) from the dividend and append it to 7, then repeat: 79 / 31

On to step 5:
When dividing 79 by 31, we get 2 with a remainder of 17.
Record the quotient 2 as the next digit in the result. 
Result so far: 2072.0
Subtracting 62 from 79 leaves us with 17.
Take the next digit (2) from the dividend and append it to 17, then repeat: 172 / 31

Moving on to step 6:
31 can be fit into 172 5 times, resulting in a remainder of 17.
Write down 5 as next digit of the result. 
Result so far: 20725.0
If we take 155 away from 172, we end up with 17.
Since there are no more digits in the dividend, we add a zero to the remainder making it 170, and continue the process.

Step 7:
31 can be fit into 170 5 times, resulting in a remainder of 15.
Record the quotient 5 as the next digit in the result. 
Result so far: 20725.5
Subtract 155 from 170 to get 15.
Since there are no more digits in the dividend, we add a zero to the remainder making it 150, and continue the process.

Going ahead to step 8:
If we divide 150 by 31, we get 4 and a remainder of 26.
Record the quotient 4 as the next digit in the result. 
Result so far: 20725.54
If we subtract 124 from 150, we get 26.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

On to step 9:
If we divide 260 by 31, we get 8 and a remainder of 12.
Record the quotient 8 as the next digit in the result. 
Result so far: 20725.548
The remainder is 12 after subtracting 248 from 260.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

On to step 10:
When dividing 120 by 31, we get 3 with a remainder of 27.
Put 3 as the next digit of the answer. 
Result so far: 20725.5483
Subtracting 93 from 120 leaves us with 27.
Since there are no more digits in the dividend, we add a zero to the remainder making it 270, and continue the process.

Let's proceed to step 11:
31 can be fit into 270 8 times, resulting in a remainder of 22.
Record the quotient 8 as the next digit in the result. 
Result so far: 20725.54838
If we subtract 248 from 270, we get 22.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

Step 12:
When dividing 220 by 31, we get 7 with a remainder of 3.
Put 7 as the next digit of the answer. 
Result so far: 20725.548387
The remainder is 3 after subtracting 217 from 220.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

Let's proceed to step 13:
31 can be fit into 30 0 times, resulting in a remainder of 30.
Write down 0 as next digit of the result. 
Result so far: 20725.548387
Deduct 0 from 30 and we're left with 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Moving on to step 14:
300 divided by 31 is 9 with a remainder of 21.
Write down 9 as next digit of the result. 
Result so far: 20725.54838709
If we take 279 away from 300, we end up with 21.
Since there are no more digits in the dividend, we add a zero to the remainder making it 210, and continue the process.

Our division results in 20725.54838709 with a remaining 2.1e-08.