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

Going ahead to step 1:
3 divided by 31 is 0 with 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:
33 divided by 31 is 1 with a remainder of 2.
Write down 1 as next digit of the result. 
Result so far: 1.0
If we take 31 away from 33, we end up with 2.
Grab the next digit (4) from the dividend, add it to 2, then carry on: 24 / 31

Let's proceed to step 3:
31 can be fit into 24 0 times, resulting in a remainder of 24.
Record the quotient 0 as the next digit in the result. 
Result so far: 10.0
If we take 0 away from 24, we end up with 24.
Append the next digit (3) from the dividend to 24 and continue with: 243 / 31

Moving on to step 4:
31 can be fit into 243 7 times, resulting in a remainder of 26.
Put 7 as the next digit of the answer. 
Result so far: 107.0
Subtracting 217 from 243 leaves us with 26.
Include the next digit (9) from the dividend after 26, then repeat: 269 / 31

On to step 5:
The number 31 fits into 269 8 times, leaving a remainder of 21.
The next digit of our result is 8. 
Result so far: 1078.0
If we take 248 away from 269, we end up with 21.
Include the next digit (6) from the dividend after 21, then repeat: 216 / 31

Moving on to step 6:
The number 31 fits into 216 6 times, leaving a remainder of 30.
The next digit of our result is 6. 
Result so far: 10786.0
Subtract 186 from 216 to get 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Let's proceed to step 7:
31 goes into 300 9 times with a remainder of 21.
Record the quotient 9 as the next digit in the result. 
Result so far: 10786.9
Subtracting 279 from 300 leaves us with 21.
Since there are no more digits in the dividend, we add a zero to the remainder making it 210, and continue the process.

Moving on to step 8:
31 can be fit into 210 6 times, resulting in a remainder of 24.
Write down 6 as next digit of the result. 
Result so far: 10786.96
The remainder is 24 after subtracting 186 from 210.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

Advancing to step 9:
240 divided by 31 is 7 with a remainder of 23.
Write down 7 as next digit of the result. 
Result so far: 10786.967
Subtracting 217 from 240 leaves us with 23.
Since there are no more digits in the dividend, we add a zero to the remainder making it 230, and continue the process.

Going ahead to step 10:
If we divide 230 by 31, we get 7 and a remainder of 13.
Write down 7 as next digit of the result. 
Result so far: 10786.9677
Subtracting 217 from 230 leaves us with 13.
Since there are no more digits in the dividend, we add a zero to the remainder making it 130, and continue the process.

Our division results in 10786.9677 with a remaining 0.00013.