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

Step 1:
7 divided by 3 is 2 with a remainder of 1.
Write down 2 as next digit of the result. 
Result so far: 2.0
Subtract 6 from 7 to get 1.
Fetch the next digit (9) from the dividend, attach it to 1 and continue: 19 / 3

Going ahead to step 2:
3 goes into 19 6 times with a remainder of 1.
The number 6 becomes the next digit in our result. 
Result so far: 26.0
If we subtract 18 from 19, we get 1.
Include the next digit (8) from the dividend after 1, then repeat: 18 / 3

Let's proceed to step 3:
3 goes into 18 6 times with a remainder of 0.
Put 6 as the next digit of the answer. 
Result so far: 266.0
If we take 18 away from 18, we end up with 0.
Take the next digit (8) from the dividend and append it to 0, then repeat: 8 / 3

On to step 4:
The number 3 fits into 8 2 times, leaving a remainder of 2.
The next digit of our result is 2. 
Result so far: 2662.0
If we subtract 6 from 8, we get 2.
Fetch the next digit (6) from the dividend, attach it to 2 and continue: 26 / 3

Let's proceed to step 5:
The number 3 fits into 26 8 times, leaving a remainder of 2.
Record the quotient 8 as the next digit in the result. 
Result so far: 26628.0
The remainder is 2 after subtracting 24 from 26.
Grab the next digit (6) from the dividend, add it to 2, then carry on: 26 / 3

On to step 6:
The number 3 fits into 26 8 times, leaving a remainder of 2.
The number 8 becomes the next digit in our result. 
Result so far: 266288.0
Subtracting 24 from 26 leaves us 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.

Going ahead to step 7:
When dividing 20 by 3, we get 6 with a remainder of 2.
Use 6 as the next digit of our solution. 
Result so far: 266288.6
Deduct 18 from 20 and we're left 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.

On to step 8:
The number 3 fits into 20 6 times, leaving a remainder of 2.
The next digit of our result is 6. 
Result so far: 266288.66
If we take 18 away from 20, 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.

The final result is 266288.66 with a remainder of 0.002.