We're dividing 40716229 by 870 
We're looking to find how many times 870 goes into 40716229.

Going ahead to step 1:
4 divided by 870 is 0 with a remainder of 4.
Use 0 as the next digit of our solution. 
Result so far: 0.0
The remainder is 4 after subtracting 0 from 4.
Grab the next digit (0) from the dividend, add it to 4, then carry on: 40 / 870

Moving on to step 2:
870 goes into 40 0 times with a remainder of 40.
Use 0 as the next digit of our solution. 
Result so far: 0.0
The remainder is 40 after subtracting 0 from 40.
Grab the next digit (7) from the dividend, add it to 40, then carry on: 407 / 870

Going ahead to step 3:
The number 870 fits into 407 0 times, leaving a remainder of 407.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Deduct 0 from 407 and we're left with 407.
Bring next digit (1) of the dividend behind the 407 and repeat the process: 4071 / 870

Let's proceed to step 4:
The number 870 fits into 4071 4 times, leaving a remainder of 591.
The number 4 becomes the next digit in our result. 
Result so far: 4.0
Subtract 3480 from 4071 to get 591.
Grab the next digit (6) from the dividend, add it to 591, then carry on: 5916 / 870

Going ahead to step 5:
870 goes into 5916 6 times with a remainder of 696.
Put 6 as the next digit of the answer. 
Result so far: 46.0
If we subtract 5220 from 5916, we get 696.
Bring next digit (2) of the dividend behind the 696 and repeat the process: 6962 / 870

On to step 6:
870 can be fit into 6962 8 times, resulting in a remainder of 2.
The next digit of our result is 8. 
Result so far: 468.0
If we take 6960 away from 6962, we end up with 2.
Grab the next digit (2) from the dividend, add it to 2, then carry on: 22 / 870

Step 7:
870 goes into 22 0 times with a remainder of 22.
The number 0 becomes the next digit in our result. 
Result so far: 4680.0
Subtracting 0 from 22 leaves us with 22.
Include the next digit (9) from the dividend after 22, then repeat: 229 / 870

Let's proceed to step 8:
870 goes into 229 0 times with a remainder of 229.
Record the quotient 0 as the next digit in the result. 
Result so far: 46800.0
Subtracting 0 from 229 leaves us with 229.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2290, and continue the process.

Step 9:
When dividing 2290 by 870, we get 2 with a remainder of 550.
Record the quotient 2 as the next digit in the result. 
Result so far: 46800.2
If we subtract 1740 from 2290, we get 550.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5500, and continue the process.

Going ahead to step 10:
If we divide 5500 by 870, we get 6 and a remainder of 280.
Write down 6 as next digit of the result. 
Result so far: 46800.26
If we take 5220 away from 5500, we end up with 280.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2800, and continue the process.

Advancing to step 11:
If we divide 2800 by 870, we get 3 and a remainder of 190.
Put 3 as the next digit of the answer. 
Result so far: 46800.263
Subtracting 2610 from 2800 leaves us with 190.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1900, and continue the process.

Moving on to step 12:
If we divide 1900 by 870, we get 2 and a remainder of 160.
Put 2 as the next digit of the answer. 
Result so far: 46800.2632
Subtracting 1740 from 1900 leaves us with 160.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1600, and continue the process.

Let's proceed to step 13:
The number 870 fits into 1600 1 times, leaving a remainder of 730.
Record the quotient 1 as the next digit in the result. 
Result so far: 46800.26321
If we take 870 away from 1600, we end up with 730.
Since there are no more digits in the dividend, we add a zero to the remainder making it 7300, and continue the process.

Step 14:
7300 divided by 870 is 8 with a remainder of 340.
Put 8 as the next digit of the answer. 
Result so far: 46800.263218
If we subtract 6960 from 7300, we get 340.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3400, and continue the process.

On to step 15:
870 can be fit into 3400 3 times, resulting in a remainder of 790.
Write down 3 as next digit of the result. 
Result so far: 46800.2632183
If we subtract 2610 from 3400, we get 790.
Since there are no more digits in the dividend, we add a zero to the remainder making it 7900, and continue the process.

Moving on to step 16:
7900 divided by 870 is 9 with a remainder of 70.
Put 9 as the next digit of the answer. 
Result so far: 46800.26321839
If we subtract 7830 from 7900, we get 70.
Since there are no more digits in the dividend, we add a zero to the remainder making it 700, and continue the process.

In conclusion, the division gives 46800.26321839 with a balance of 7e-08.