Let's divide 31376822 by 668
We want to divide 31376822 by 668.

Advancing to step 1:
668 goes into 3 0 times with a remainder of 3.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we subtract 0 from 3, we get 3.
Fetch the next digit (1) from the dividend, attach it to 3 and continue: 31 / 668

On to step 2:
668 can be fit into 31 0 times, resulting in a remainder of 31.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we subtract 0 from 31, we get 31.
Take the next digit (3) from the dividend and append it to 31, then repeat: 313 / 668

Advancing to step 3:
If we divide 313 by 668, we get 0 and a remainder of 313.
The next digit of our result is 0. 
Result so far: 0.0
Subtracting 0 from 313 leaves us with 313.
Grab the next digit (7) from the dividend, add it to 313, then carry on: 3137 / 668

Let's proceed to step 4:
When dividing 3137 by 668, we get 4 with a remainder of 465.
Write down 4 as next digit of the result. 
Result so far: 4.0
Subtracting 2672 from 3137 leaves us with 465.
Take the next digit (6) from the dividend and append it to 465, then repeat: 4656 / 668

Advancing to step 5:
When dividing 4656 by 668, we get 6 with a remainder of 648.
The number 6 becomes the next digit in our result. 
Result so far: 46.0
Subtracting 4008 from 4656 leaves us with 648.
Take the next digit (8) from the dividend and append it to 648, then repeat: 6488 / 668

Going ahead to step 6:
The number 668 fits into 6488 9 times, leaving a remainder of 476.
Write down 9 as next digit of the result. 
Result so far: 469.0
Subtracting 6012 from 6488 leaves us with 476.
Include the next digit (2) from the dividend after 476, then repeat: 4762 / 668

Let's proceed to step 7:
4762 divided by 668 is 7 with a remainder of 86.
Put 7 as the next digit of the answer. 
Result so far: 4697.0
Subtracting 4676 from 4762 leaves us with 86.
Grab the next digit (2) from the dividend, add it to 86, then carry on: 862 / 668

On to step 8:
When dividing 862 by 668, we get 1 with a remainder of 194.
The number 1 becomes the next digit in our result. 
Result so far: 46971.0
If we subtract 668 from 862, we get 194.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1940, and continue the process.

Moving on to step 9:
668 goes into 1940 2 times with a remainder of 604.
Write down 2 as next digit of the result. 
Result so far: 46971.2
The remainder is 604 after subtracting 1336 from 1940.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6040, and continue the process.

Moving on to step 10:
If we divide 6040 by 668, we get 9 and a remainder of 28.
Use 9 as the next digit of our solution. 
Result so far: 46971.29
Subtract 6012 from 6040 to get 28.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

On to step 11:
The number 668 fits into 280 0 times, leaving a remainder of 280.
Use 0 as the next digit of our solution. 
Result so far: 46971.29
The remainder is 280 after subtracting 0 from 280.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2800, and continue the process.

On to step 12:
If we divide 2800 by 668, we get 4 and a remainder of 128.
The next digit of our result is 4. 
Result so far: 46971.2904
Subtracting 2672 from 2800 leaves us with 128.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1280, and continue the process.

Let's proceed to step 13:
668 goes into 1280 1 times with a remainder of 612.
Put 1 as the next digit of the answer. 
Result so far: 46971.29041
Subtract 668 from 1280 to get 612.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6120, and continue the process.

Going ahead to step 14:
If we divide 6120 by 668, we get 9 and a remainder of 108.
The next digit of our result is 9. 
Result so far: 46971.290419
If we subtract 6012 from 6120, we get 108.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1080, and continue the process.

Advancing to step 15:
If we divide 1080 by 668, we get 1 and a remainder of 412.
Put 1 as the next digit of the answer. 
Result so far: 46971.2904191
If we take 668 away from 1080, we end up with 412.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4120, and continue the process.

Step 16:
When dividing 4120 by 668, we get 6 with a remainder of 112.
The number 6 becomes the next digit in our result. 
Result so far: 46971.29041916
If we take 4008 away from 4120, we end up with 112.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1120, and continue the process.

In conclusion, the division gives 46971.29041916 with a balance of 1.12e-07.