We divide 299158 by 3
We're looking to find how many times 3 goes into 299158.

Let's proceed to step 1:
3 can be fit into 2 0 times, resulting in a remainder of 2.
Write down 0 as next digit of the result. 
Result so far: 0.0
Deduct 0 from 2 and we're left with 2.
Take the next digit (9) from the dividend and append it to 2, then repeat: 29 / 3

Moving on to step 2:
If we divide 29 by 3, we get 9 and a remainder of 2.
Put 9 as the next digit of the answer. 
Result so far: 9.0
Subtract 27 from 29 to get 2.
Include the next digit (9) from the dividend after 2, then repeat: 29 / 3

On to step 3:
The number 3 fits into 29 9 times, leaving a remainder of 2.
Write down 9 as next digit of the result. 
Result so far: 99.0
The remainder is 2 after subtracting 27 from 29.
Append the next digit (1) from the dividend to 2 and continue with: 21 / 3

Moving on to step 4:
21 divided by 3 is 7 with a remainder of 0.
Use 7 as the next digit of our solution. 
Result so far: 997.0
Subtracting 21 from 21 leaves us with 0.
Bring next digit (5) of the dividend behind the 0 and repeat the process: 5 / 3

Moving on to step 5:
3 can be fit into 5 1 times, resulting in a remainder of 2.
Use 1 as the next digit of our solution. 
Result so far: 9971.0
The remainder is 2 after subtracting 3 from 5.
Include the next digit (8) from the dividend after 2, then repeat: 28 / 3

Advancing to step 6:
3 goes into 28 9 times with a remainder of 1.
Use 9 as the next digit of our solution. 
Result so far: 99719.0
Deduct 27 from 28 and we're left 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.

Advancing to step 7:
If we divide 10 by 3, we get 3 and a remainder of 1.
Record the quotient 3 as the next digit in the result. 
Result so far: 99719.3
If we take 9 away from 10, we end up 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.

Let's proceed to step 8:
If we divide 10 by 3, we get 3 and a remainder of 1.
The next digit of our result is 3. 
Result so far: 99719.33
Subtracting 9 from 10 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.

The final outcome is 99719.33, with a leftover of 0.001.