40978136 divided by 870 
Our goal is to divide 40978136 by 870.

Moving on to step 1:
870 goes into 4 0 times with a remainder of 4.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtracting 0 from 4 leaves us with 4.
Take the next digit (0) from the dividend and append it to 4, then repeat: 40 / 870

Going ahead to step 2:
870 goes into 40 0 times with a remainder of 40.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we take 0 away from 40, we end up with 40.
Include the next digit (9) from the dividend after 40, then repeat: 409 / 870

Advancing to step 3:
When dividing 409 by 870, we get 0 with a remainder of 409.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtracting 0 from 409 leaves us with 409.
Fetch the next digit (7) from the dividend, attach it to 409 and continue: 4097 / 870

Going ahead to step 4:
870 can be fit into 4097 4 times, resulting in a remainder of 617.
Write down 4 as next digit of the result. 
Result so far: 4.0
If we take 3480 away from 4097, we end up with 617.
Include the next digit (8) from the dividend after 617, then repeat: 6178 / 870

Moving on to step 5:
6178 divided by 870 is 7 with a remainder of 88.
The next digit of our result is 7. 
Result so far: 47.0
If we subtract 6090 from 6178, we get 88.
Grab the next digit (1) from the dividend, add it to 88, then carry on: 881 / 870

Advancing to step 6:
If we divide 881 by 870, we get 1 and a remainder of 11.
Use 1 as the next digit of our solution. 
Result so far: 471.0
The remainder is 11 after subtracting 870 from 881.
Bring next digit (3) of the dividend behind the 11 and repeat the process: 113 / 870

On to step 7:
113 divided by 870 is 0 with a remainder of 113.
Put 0 as the next digit of the answer. 
Result so far: 4710.0
The remainder is 113 after subtracting 0 from 113.
Grab the next digit (6) from the dividend, add it to 113, then carry on: 1136 / 870

On to step 8:
870 can be fit into 1136 1 times, resulting in a remainder of 266.
The next digit of our result is 1. 
Result so far: 47101.0
Subtract 870 from 1136 to get 266.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2660, and continue the process.

Going ahead to step 9:
The number 870 fits into 2660 3 times, leaving a remainder of 50.
Put 3 as the next digit of the answer. 
Result so far: 47101.3
Subtracting 2610 from 2660 leaves us with 50.
Since there are no more digits in the dividend, we add a zero to the remainder making it 500, and continue the process.

Advancing to step 10:
The number 870 fits into 500 0 times, leaving a remainder of 500.
Write down 0 as next digit of the result. 
Result so far: 47101.3
Subtracting 0 from 500 leaves us with 500.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5000, and continue the process.

Advancing to step 11:
5000 divided by 870 is 5 with a remainder of 650.
The number 5 becomes the next digit in our result. 
Result so far: 47101.305
If we subtract 4350 from 5000, we get 650.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6500, and continue the process.

Step 12:
When dividing 6500 by 870, we get 7 with a remainder of 410.
The next digit of our result is 7. 
Result so far: 47101.3057
Deduct 6090 from 6500 and we're left with 410.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4100, and continue the process.

Moving on to step 13:
The number 870 fits into 4100 4 times, leaving a remainder of 620.
Put 4 as the next digit of the answer. 
Result so far: 47101.30574
Deduct 3480 from 4100 and we're left with 620.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6200, and continue the process.

Let's proceed to step 14:
If we divide 6200 by 870, we get 7 and a remainder of 110.
The next digit of our result is 7. 
Result so far: 47101.305747
If we take 6090 away from 6200, we end up with 110.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1100, and continue the process.

On to step 15:
870 can be fit into 1100 1 times, resulting in a remainder of 230.
Record the quotient 1 as the next digit in the result. 
Result so far: 47101.3057471
If we subtract 870 from 1100, we get 230.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2300, and continue the process.

Advancing to step 16:
870 can be fit into 2300 2 times, resulting in a remainder of 560.
Record the quotient 2 as the next digit in the result. 
Result so far: 47101.30574712
Deduct 1740 from 2300 and we're left with 560.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5600, and continue the process.

The final outcome is 47101.30574712, with a leftover of 5.6e-07.