We divide 870797 by 7
We want to divide 870797 by 7.

Going ahead to step 1:
If we divide 8 by 7, we get 1 and a remainder of 1.
Put 1 as the next digit of the answer. 
Result so far: 1.0
If we subtract 7 from 8, we get 1.
Fetch the next digit (7) from the dividend, attach it to 1 and continue: 17 / 7

On to step 2:
The number 7 fits into 17 2 times, leaving a remainder of 3.
Put 2 as the next digit of the answer. 
Result so far: 12.0
Deduct 14 from 17 and we're left with 3.
Take the next digit (0) from the dividend and append it to 3, then repeat: 30 / 7

Step 3:
If we divide 30 by 7, we get 4 and a remainder of 2.
The number 4 becomes the next digit in our result. 
Result so far: 124.0
Subtracting 28 from 30 leaves us with 2.
Include the next digit (7) from the dividend after 2, then repeat: 27 / 7

Let's proceed to step 4:
When dividing 27 by 7, we get 3 with a remainder of 6.
Write down 3 as next digit of the result. 
Result so far: 1243.0
If we subtract 21 from 27, we get 6.
Bring next digit (9) of the dividend behind the 6 and repeat the process: 69 / 7

On to step 5:
The number 7 fits into 69 9 times, leaving a remainder of 6.
The next digit of our result is 9. 
Result so far: 12439.0
The remainder is 6 after subtracting 63 from 69.
Append the next digit (7) from the dividend to 6 and continue with: 67 / 7

On to step 6:
67 divided by 7 is 9 with a remainder of 4.
The number 9 becomes the next digit in our result. 
Result so far: 124399.0
The remainder is 4 after subtracting 63 from 67.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Moving on to step 7:
40 divided by 7 is 5 with a remainder of 5.
Put 5 as the next digit of the answer. 
Result so far: 124399.5
Deduct 35 from 40 and we're left with 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Advancing to step 8:
The number 7 fits into 50 7 times, leaving a remainder of 1.
The number 7 becomes the next digit in our result. 
Result so far: 124399.57
Subtract 49 from 50 to get 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Step 9:
7 can be fit into 10 1 times, resulting in a remainder of 3.
Use 1 as the next digit of our solution. 
Result so far: 124399.571
Subtract 7 from 10 to get 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

On to step 10:
30 divided by 7 is 4 with a remainder of 2.
The number 4 becomes the next digit in our result. 
Result so far: 124399.5714
The remainder is 2 after subtracting 28 from 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Step 11:
7 goes into 20 2 times with a remainder of 6.
Write down 2 as next digit of the result. 
Result so far: 124399.57142
The remainder is 6 after subtracting 14 from 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

On to step 12:
7 can be fit into 60 8 times, resulting in a remainder of 4.
Write down 8 as next digit of the result. 
Result so far: 124399.571428
Subtracting 56 from 60 leaves us with 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Step 13:
7 can be fit into 40 5 times, resulting in a remainder of 5.
Use 5 as the next digit of our solution. 
Result so far: 124399.5714285
Subtract 35 from 40 to get 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Step 14:
If we divide 50 by 7, we get 7 and a remainder of 1.
The number 7 becomes the next digit in our result. 
Result so far: 124399.57142857
If we take 49 away from 50, 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.

The final result is 124399.57142857 with a remainder of 1e-09.