Let's divide 643946 by 31
Our goal is to divide 643946 by 31.

On to step 1:
31 can be fit into 6 0 times, resulting in a remainder of 6.
The next digit of our result is 0. 
Result so far: 0.0
Subtract 0 from 6 to get 6.
Fetch the next digit (4) from the dividend, attach it to 6 and continue: 64 / 31

Step 2:
The number 31 fits into 64 2 times, leaving a remainder of 2.
Put 2 as the next digit of the answer. 
Result so far: 2.0
Subtract 62 from 64 to get 2.
Grab the next digit (3) from the dividend, add it to 2, then carry on: 23 / 31

Moving on to step 3:
If we divide 23 by 31, we get 0 and a remainder of 23.
Record the quotient 0 as the next digit in the result. 
Result so far: 20.0
Deduct 0 from 23 and we're left with 23.
Include the next digit (9) from the dividend after 23, then repeat: 239 / 31

Let's proceed to step 4:
When dividing 239 by 31, we get 7 with a remainder of 22.
Write down 7 as next digit of the result. 
Result so far: 207.0
If we take 217 away from 239, we end up with 22.
Fetch the next digit (4) from the dividend, attach it to 22 and continue: 224 / 31

Advancing to step 5:
If we divide 224 by 31, we get 7 and a remainder of 7.
Write down 7 as next digit of the result. 
Result so far: 2077.0
If we subtract 217 from 224, we get 7.
Grab the next digit (6) from the dividend, add it to 7, then carry on: 76 / 31

Step 6:
When dividing 76 by 31, we get 2 with a remainder of 14.
The next digit of our result is 2. 
Result so far: 20772.0
If we take 62 away from 76, we end up with 14.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

Advancing to step 7:
31 goes into 140 4 times with a remainder of 16.
Write down 4 as next digit of the result. 
Result so far: 20772.4
If we take 124 away from 140, we end up with 16.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

Moving on to step 8:
160 divided by 31 is 5 with a remainder of 5.
Write down 5 as next digit of the result. 
Result so far: 20772.45
The remainder is 5 after subtracting 155 from 160.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Step 9:
31 can be fit into 50 1 times, resulting in a remainder of 19.
Write down 1 as next digit of the result. 
Result so far: 20772.451
Subtract 31 from 50 to get 19.
Since there are no more digits in the dividend, we add a zero to the remainder making it 190, and continue the process.

On to step 10:
190 divided by 31 is 6 with a remainder of 4.
Record the quotient 6 as the next digit in the result. 
Result so far: 20772.4516
The remainder is 4 after subtracting 186 from 190.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Let's proceed to step 11:
The number 31 fits into 40 1 times, leaving a remainder of 9.
Put 1 as the next digit of the answer. 
Result so far: 20772.45161
Deduct 31 from 40 and we're left with 9.
Since there are no more digits in the dividend, we add a zero to the remainder making it 90, and continue the process.

Advancing to step 12:
When dividing 90 by 31, we get 2 with a remainder of 28.
Write down 2 as next digit of the result. 
Result so far: 20772.451612
If we take 62 away from 90, we end up with 28.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

Moving on to step 13:
When dividing 280 by 31, we get 9 with a remainder of 1.
The next digit of our result is 9. 
Result so far: 20772.4516129
Subtracting 279 from 280 leaves us with 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Advancing to step 14:
The number 31 fits into 10 0 times, leaving a remainder of 10.
Record the quotient 0 as the next digit in the result. 
Result so far: 20772.4516129
Subtracting 0 from 10 leaves us with 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

The final outcome is 20772.4516129, with a leftover of 1e-08.