Let's divide 330158 by 31
We're looking to find how many times 31 goes into 330158.

Moving on to step 1:
3 divided by 31 is 0 with a remainder of 3.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Deduct 0 from 3 and we're left with 3.
Include the next digit (3) from the dividend after 3, then repeat: 33 / 31

On to step 2:
33 divided by 31 is 1 with a remainder of 2.
Put 1 as the next digit of the answer. 
Result so far: 1.0
The remainder is 2 after subtracting 31 from 33.
Append the next digit (0) from the dividend to 2 and continue with: 20 / 31

Moving on to step 3:
The number 31 fits into 20 0 times, leaving a remainder of 20.
Put 0 as the next digit of the answer. 
Result so far: 10.0
Deduct 0 from 20 and we're left with 20.
Take the next digit (1) from the dividend and append it to 20, then repeat: 201 / 31

On to step 4:
31 can be fit into 201 6 times, resulting in a remainder of 15.
Record the quotient 6 as the next digit in the result. 
Result so far: 106.0
Subtracting 186 from 201 leaves us with 15.
Grab the next digit (5) from the dividend, add it to 15, then carry on: 155 / 31

Step 5:
31 can be fit into 155 5 times, resulting in a remainder of 0.
The number 5 becomes the next digit in our result. 
Result so far: 1065.0
Subtracting 155 from 155 leaves us with 0.
Fetch the next digit (8) from the dividend, attach it to 0 and continue: 8 / 31

Let's proceed to step 6:
The number 31 fits into 8 0 times, leaving a remainder of 8.
Put 0 as the next digit of the answer. 
Result so far: 10650.0
If we subtract 0 from 8, we get 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Going ahead to step 7:
If we divide 80 by 31, we get 2 and a remainder of 18.
The next digit of our result is 2. 
Result so far: 10650.2
Subtracting 62 from 80 leaves us with 18.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

Step 8:
When dividing 180 by 31, we get 5 with a remainder of 25.
The next digit of our result is 5. 
Result so far: 10650.25
If we subtract 155 from 180, we get 25.
Since there are no more digits in the dividend, we add a zero to the remainder making it 250, and continue the process.

Going ahead to step 9:
The number 31 fits into 250 8 times, leaving a remainder of 2.
Record the quotient 8 as the next digit in the result. 
Result so far: 10650.258
If we subtract 248 from 250, we get 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Moving on to step 10:
31 can be fit into 20 0 times, resulting in a remainder of 20.
Record the quotient 0 as the next digit in the result. 
Result so far: 10650.258
The remainder is 20 after subtracting 0 from 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

On to step 11:
31 goes into 200 6 times with a remainder of 14.
Write down 6 as next digit of the result. 
Result so far: 10650.25806
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.

Advancing to step 12:
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: 10650.258064
If we subtract 124 from 140, we get 16.
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 13:
31 goes into 160 5 times with a remainder of 5.
The number 5 becomes the next digit in our result. 
Result so far: 10650.2580645
The remainder is 5 after subtracting 155 from 160.
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 14:
The number 31 fits into 50 1 times, leaving a remainder of 19.
Put 1 as the next digit of the answer. 
Result so far: 10650.25806451
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.

The final result is 10650.25806451 with a remainder of 1.9e-08.