We're dividing 299315 by 31 
Our goal is to divide 299315 by 31.

Let's proceed to step 1:
31 goes into 2 0 times with a remainder of 2.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we subtract 0 from 2, we get 2.
Take the next digit (9) from the dividend and append it to 2, then repeat: 29 / 31

Advancing to step 2:
31 can be fit into 29 0 times, resulting in a remainder of 29.
The next digit of our result is 0. 
Result so far: 0.0
If we take 0 away from 29, we end up with 29.
Append the next digit (9) from the dividend to 29 and continue with: 299 / 31

On to step 3:
31 goes into 299 9 times with a remainder of 20.
Write down 9 as next digit of the result. 
Result so far: 9.0
Subtracting 279 from 299 leaves us with 20.
Bring next digit (3) of the dividend behind the 20 and repeat the process: 203 / 31

Going ahead to step 4:
When dividing 203 by 31, we get 6 with a remainder of 17.
Record the quotient 6 as the next digit in the result. 
Result so far: 96.0
If we take 186 away from 203, we end up with 17.
Grab the next digit (1) from the dividend, add it to 17, then carry on: 171 / 31

Going ahead to step 5:
31 goes into 171 5 times with a remainder of 16.
Write down 5 as next digit of the result. 
Result so far: 965.0
Subtracting 155 from 171 leaves us with 16.
Bring next digit (5) of the dividend behind the 16 and repeat the process: 165 / 31

Let's proceed to step 6:
31 can be fit into 165 5 times, resulting in a remainder of 10.
Record the quotient 5 as the next digit in the result. 
Result so far: 9655.0
If we take 155 away from 165, we end up with 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Let's proceed to step 7:
100 divided by 31 is 3 with a remainder of 7.
Record the quotient 3 as the next digit in the result. 
Result so far: 9655.3
If we subtract 93 from 100, we get 7.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

Moving on to step 8:
When dividing 70 by 31, we get 2 with a remainder of 8.
The next digit of our result is 2. 
Result so far: 9655.32
If we subtract 62 from 70, 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 9:
When dividing 80 by 31, we get 2 with a remainder of 18.
Record the quotient 2 as the next digit in the result. 
Result so far: 9655.322
If we take 62 away from 80, we end up 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.

Our division results in 9655.322 with a remaining 0.0018.