We're dividing 643476 by 31 
Our goal is to divide 643476 by 31.

On to step 1:
31 goes into 6 0 times with a remainder of 6.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Deduct 0 from 6 and we're left with 6.
Include the next digit (4) from the dividend after 6, then repeat: 64 / 31

Advancing to step 2:
The number 31 fits into 64 2 times, leaving a remainder of 2.
Use 2 as the next digit of our solution. 
Result so far: 2.0
Subtract 62 from 64 to get 2.
Append the next digit (3) from the dividend to 2 and continue with: 23 / 31

Let's proceed to step 3:
The number 31 fits into 23 0 times, leaving a remainder of 23.
Use 0 as the next digit of our solution. 
Result so far: 20.0
Subtracting 0 from 23 leaves us with 23.
Fetch the next digit (4) from the dividend, attach it to 23 and continue: 234 / 31

On to step 4:
31 can be fit into 234 7 times, resulting in a remainder of 17.
The number 7 becomes the next digit in our result. 
Result so far: 207.0
Subtracting 217 from 234 leaves us with 17.
Append the next digit (7) from the dividend to 17 and continue with: 177 / 31

Let's proceed to step 5:
When dividing 177 by 31, we get 5 with a remainder of 22.
The next digit of our result is 5. 
Result so far: 2075.0
Deduct 155 from 177 and we're left with 22.
Include the next digit (6) from the dividend after 22, then repeat: 226 / 31

Going ahead to step 6:
226 divided by 31 is 7 with a remainder of 9.
The number 7 becomes the next digit in our result. 
Result so far: 20757.0
If we take 217 away from 226, we end up 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.

On to step 7:
90 divided by 31 is 2 with a remainder of 28.
Record the quotient 2 as the next digit in the result. 
Result so far: 20757.2
Deduct 62 from 90 and we're left 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.

Going ahead to step 8:
31 can be fit into 280 9 times, resulting in a remainder of 1.
The number 9 becomes the next digit in our result. 
Result so far: 20757.29
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.

Going ahead to step 9:
31 can be fit into 10 0 times, resulting in a remainder of 10.
Put 0 as the next digit of the answer. 
Result so far: 20757.29
If we take 0 away from 10, we end up 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.

Step 10:
If we divide 100 by 31, we get 3 and a remainder of 7.
Put 3 as the next digit of the answer. 
Result so far: 20757.2903
Subtract 93 from 100 to get 7.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

Let's proceed to step 11:
If we divide 70 by 31, we get 2 and a remainder of 8.
Record the quotient 2 as the next digit in the result. 
Result so far: 20757.29032
Subtract 62 from 70 to get 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Going ahead to step 12:
If we divide 80 by 31, we get 2 and a remainder of 18.
The number 2 becomes the next digit in our result. 
Result so far: 20757.290322
Subtracting 62 from 80 leaves us with 18.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

After the division, we end up with 20757.290322 and a remainder of 1.8e-06.