Let's divide 670040 by 31
We want to figure out the number of times 670040 can be divided by 31.

Advancing to step 1:
31 can be fit into 6 0 times, resulting in a remainder of 6.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we take 0 away from 6, we end up with 6.
Take the next digit (7) from the dividend and append it to 6, then repeat: 67 / 31

Moving on to step 2:
67 divided by 31 is 2 with a remainder of 5.
Record the quotient 2 as the next digit in the result. 
Result so far: 2.0
If we subtract 62 from 67, we get 5.
Include the next digit (0) from the dividend after 5, then repeat: 50 / 31

Moving on to step 3:
31 goes into 50 1 times with a remainder of 19.
The next digit of our result is 1. 
Result so far: 21.0
If we take 31 away from 50, we end up with 19.
Grab the next digit (0) from the dividend, add it to 19, then carry on: 190 / 31

Moving on to step 4:
If we divide 190 by 31, we get 6 and a remainder of 4.
Put 6 as the next digit of the answer. 
Result so far: 216.0
If we take 186 away from 190, we end up with 4.
Bring next digit (4) of the dividend behind the 4 and repeat the process: 44 / 31

Moving on to step 5:
The number 31 fits into 44 1 times, leaving a remainder of 13.
The number 1 becomes the next digit in our result. 
Result so far: 2161.0
Subtract 31 from 44 to get 13.
Fetch the next digit (0) from the dividend, attach it to 13 and continue: 130 / 31

On to step 6:
31 goes into 130 4 times with a remainder of 6.
Use 4 as the next digit of our solution. 
Result so far: 21614.0
Subtract 124 from 130 to get 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

On to step 7:
60 divided by 31 is 1 with a remainder of 29.
The number 1 becomes the next digit in our result. 
Result so far: 21614.1
If we subtract 31 from 60, we get 29.
Since there are no more digits in the dividend, we add a zero to the remainder making it 290, and continue the process.

Advancing to step 8:
31 goes into 290 9 times with a remainder of 11.
Use 9 as the next digit of our solution. 
Result so far: 21614.19
Subtracting 279 from 290 leaves us with 11.
Since there are no more digits in the dividend, we add a zero to the remainder making it 110, and continue the process.

Moving on to step 9:
When dividing 110 by 31, we get 3 with a remainder of 17.
The next digit of our result is 3. 
Result so far: 21614.193
Subtract 93 from 110 to get 17.
Since there are no more digits in the dividend, we add a zero to the remainder making it 170, and continue the process.

Going ahead to step 10:
31 goes into 170 5 times with a remainder of 15.
Write down 5 as next digit of the result. 
Result so far: 21614.1935
If we take 155 away from 170, we end up with 15.
Since there are no more digits in the dividend, we add a zero to the remainder making it 150, and continue the process.

Moving on to step 11:
150 divided by 31 is 4 with a remainder of 26.
The number 4 becomes the next digit in our result. 
Result so far: 21614.19354
The remainder is 26 after subtracting 124 from 150.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

Step 12:
When dividing 260 by 31, we get 8 with a remainder of 12.
Use 8 as the next digit of our solution. 
Result so far: 21614.193548
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.

Moving on to step 13:
When dividing 120 by 31, we get 3 with a remainder of 27.
The number 3 becomes the next digit in our result. 
Result so far: 21614.1935483
The remainder is 27 after subtracting 93 from 120.
Since there are no more digits in the dividend, we add a zero to the remainder making it 270, and continue the process.

On to step 14:
The number 31 fits into 270 8 times, leaving a remainder of 22.
Put 8 as the next digit of the answer. 
Result so far: 21614.19354838
Subtracting 248 from 270 leaves us with 22.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

In conclusion, the division gives 21614.19354838 with a balance of 2.2e-08.