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

Going ahead to step 1:
If we divide 3 by 31, we get 0 and a remainder of 3.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we take 0 away from 3, we end up with 3.
Bring next digit (3) of the dividend behind the 3 and repeat the process: 33 / 31

On to step 2:
31 can be fit into 33 1 times, resulting in a remainder of 2.
Write down 1 as next digit of the result. 
Result so far: 1.0
Subtract 31 from 33 to get 2.
Fetch the next digit (8) from the dividend, attach it to 2 and continue: 28 / 31

Moving on to step 3:
When dividing 28 by 31, we get 0 with a remainder of 28.
The next digit of our result is 0. 
Result so far: 10.0
Deduct 0 from 28 and we're left with 28.
Take the next digit (1) from the dividend and append it to 28, then repeat: 281 / 31

Step 4:
The number 31 fits into 281 9 times, leaving a remainder of 2.
Record the quotient 9 as the next digit in the result. 
Result so far: 109.0
The remainder is 2 after subtracting 279 from 281.
Take the next digit (6) from the dividend and append it to 2, then repeat: 26 / 31

Going ahead to step 5:
31 can be fit into 26 0 times, resulting in a remainder of 26.
Write down 0 as next digit of the result. 
Result so far: 1090.0
The remainder is 26 after subtracting 0 from 26.
Take the next digit (8) from the dividend and append it to 26, then repeat: 268 / 31

Advancing to step 6:
31 goes into 268 8 times with a remainder of 20.
Record the quotient 8 as the next digit in the result. 
Result so far: 10908.0
If we subtract 248 from 268, we get 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Advancing to step 7:
The number 31 fits into 200 6 times, leaving a remainder of 14.
The number 6 becomes the next digit in our result. 
Result so far: 10908.6
Subtracting 186 from 200 leaves us 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.

Step 8:
The number 31 fits into 140 4 times, leaving a remainder of 16.
The number 4 becomes the next digit in our result. 
Result so far: 10908.64
The remainder is 16 after subtracting 124 from 140.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

Advancing to step 9:
31 goes into 160 5 times with a remainder of 5.
The next digit of our result is 5. 
Result so far: 10908.645
Subtract 155 from 160 to get 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Going ahead to step 10:
When dividing 50 by 31, we get 1 with a remainder of 19.
Use 1 as the next digit of our solution. 
Result so far: 10908.6451
If we subtract 31 from 50, we 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.

Advancing to step 11:
31 can be fit into 190 6 times, resulting in a remainder of 4.
Put 6 as the next digit of the answer. 
Result so far: 10908.64516
If we subtract 186 from 190, we get 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Advancing to step 12:
If we divide 40 by 31, we get 1 and a remainder of 9.
The next digit of our result is 1. 
Result so far: 10908.645161
The remainder is 9 after subtracting 31 from 40.
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 13:
When dividing 90 by 31, we get 2 with a remainder of 28.
Use 2 as the next digit of our solution. 
Result so far: 10908.6451612
Subtract 62 from 90 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.

Step 14:
31 goes into 280 9 times with a remainder of 1.
Record the quotient 9 as the next digit in the result. 
Result so far: 10908.64516129
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.

Our division results in 10908.64516129 with a remaining 1e-09.