We look at the division of 336228 by 31 
We're looking to find how many times 31 goes into 336228.

Advancing to step 1:
31 can be fit into 3 0 times, resulting in a remainder of 3.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
The remainder is 3 after subtracting 0 from 3.
Bring next digit (3) of the dividend behind the 3 and repeat the process: 33 / 31

On to step 2:
When dividing 33 by 31, we get 1 with a remainder of 2.
Record the quotient 1 as the next digit in the result. 
Result so far: 1.0
Deduct 31 from 33 and we're left with 2.
Bring next digit (6) of the dividend behind the 2 and repeat the process: 26 / 31

On to step 3:
If we divide 26 by 31, we get 0 and a remainder of 26.
Write down 0 as next digit of the result. 
Result so far: 10.0
Deduct 0 from 26 and we're left with 26.
Grab the next digit (2) from the dividend, add it to 26, then carry on: 262 / 31

On to step 4:
262 divided by 31 is 8 with a remainder of 14.
Record the quotient 8 as the next digit in the result. 
Result so far: 108.0
The remainder is 14 after subtracting 248 from 262.
Include the next digit (2) from the dividend after 14, then repeat: 142 / 31

Step 5:
If we divide 142 by 31, we get 4 and a remainder of 18.
Write down 4 as next digit of the result. 
Result so far: 1084.0
The remainder is 18 after subtracting 124 from 142.
Bring next digit (8) of the dividend behind the 18 and repeat the process: 188 / 31

Going ahead to step 6:
The number 31 fits into 188 6 times, leaving a remainder of 2.
The number 6 becomes the next digit in our result. 
Result so far: 10846.0
If we take 186 away from 188, we end up with 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Step 7:
20 divided by 31 is 0 with a remainder of 20.
Record the quotient 0 as the next digit in the result. 
Result so far: 10846.0
Deduct 0 from 20 and we're left with 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Step 8:
If we divide 200 by 31, we get 6 and a remainder of 14.
Use 6 as the next digit of our solution. 
Result so far: 10846.06
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 9:
The number 31 fits into 140 4 times, leaving a remainder of 16.
Record the quotient 4 as the next digit in the result. 
Result so far: 10846.064
Subtracting 124 from 140 leaves us 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.

Step 10:
160 divided by 31 is 5 with a remainder of 5.
Use 5 as the next digit of our solution. 
Result so far: 10846.0645
If we subtract 155 from 160, we 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.

On to step 11:
The number 31 fits into 50 1 times, leaving a remainder of 19.
The number 1 becomes the next digit in our result. 
Result so far: 10846.06451
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.

Let's proceed to step 12:
31 can be fit into 190 6 times, resulting in a remainder of 4.
Use 6 as the next digit of our solution. 
Result so far: 10846.064516
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.

Going ahead to step 13:
If we divide 40 by 31, we get 1 and a remainder of 9.
Put 1 as the next digit of the answer. 
Result so far: 10846.0645161
Subtract 31 from 40 to get 9.
Since there are no more digits in the dividend, we add a zero to the remainder making it 90, and continue the process.

Step 14:
If we divide 90 by 31, we get 2 and a remainder of 28.
Use 2 as the next digit of our solution. 
Result so far: 10846.06451612
The remainder is 28 after subtracting 62 from 90.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

The quotient of the division is 10846.06451612, and the remainder is 2.8e-08.