We divide 5221458 by 870
We want to figure out the number of times 5221458 can be divided by 870.

Advancing to step 1:
870 goes into 5 0 times with a remainder of 5.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we subtract 0 from 5, we get 5.
Bring next digit (2) of the dividend behind the 5 and repeat the process: 52 / 870

Let's proceed to step 2:
870 can be fit into 52 0 times, resulting in a remainder of 52.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
The remainder is 52 after subtracting 0 from 52.
Fetch the next digit (2) from the dividend, attach it to 52 and continue: 522 / 870

On to step 3:
When dividing 522 by 870, we get 0 with a remainder of 522.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Subtracting 0 from 522 leaves us with 522.
Take the next digit (1) from the dividend and append it to 522, then repeat: 5221 / 870

Moving on to step 4:
The number 870 fits into 5221 6 times, leaving a remainder of 1.
Use 6 as the next digit of our solution. 
Result so far: 6.0
If we subtract 5220 from 5221, we get 1.
Fetch the next digit (4) from the dividend, attach it to 1 and continue: 14 / 870

Moving on to step 5:
The number 870 fits into 14 0 times, leaving a remainder of 14.
Record the quotient 0 as the next digit in the result. 
Result so far: 60.0
The remainder is 14 after subtracting 0 from 14.
Bring next digit (5) of the dividend behind the 14 and repeat the process: 145 / 870

Moving on to step 6:
145 divided by 870 is 0 with a remainder of 145.
The next digit of our result is 0. 
Result so far: 600.0
If we take 0 away from 145, we end up with 145.
Take the next digit (8) from the dividend and append it to 145, then repeat: 1458 / 870

On to step 7:
870 can be fit into 1458 1 times, resulting in a remainder of 588.
Record the quotient 1 as the next digit in the result. 
Result so far: 6001.0
Subtract 870 from 1458 to get 588.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5880, and continue the process.

Going ahead to step 8:
870 goes into 5880 6 times with a remainder of 660.
Record the quotient 6 as the next digit in the result. 
Result so far: 6001.6
Subtracting 5220 from 5880 leaves us with 660.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6600, and continue the process.

On to step 9:
870 can be fit into 6600 7 times, resulting in a remainder of 510.
The number 7 becomes the next digit in our result. 
Result so far: 6001.67
The remainder is 510 after subtracting 6090 from 6600.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5100, and continue the process.

Moving on to step 10:
870 can be fit into 5100 5 times, resulting in a remainder of 750.
Record the quotient 5 as the next digit in the result. 
Result so far: 6001.675
If we take 4350 away from 5100, we end up with 750.
Since there are no more digits in the dividend, we add a zero to the remainder making it 7500, and continue the process.

On to step 11:
7500 divided by 870 is 8 with a remainder of 540.
Record the quotient 8 as the next digit in the result. 
Result so far: 6001.6758
Deduct 6960 from 7500 and we're left with 540.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5400, and continue the process.

Let's proceed to step 12:
If we divide 5400 by 870, we get 6 and a remainder of 180.
Record the quotient 6 as the next digit in the result. 
Result so far: 6001.67586
The remainder is 180 after subtracting 5220 from 5400.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1800, and continue the process.

Moving on to step 13:
When dividing 1800 by 870, we get 2 with a remainder of 60.
The number 2 becomes the next digit in our result. 
Result so far: 6001.675862
Deduct 1740 from 1800 and we're left with 60.
Since there are no more digits in the dividend, we add a zero to the remainder making it 600, and continue the process.

Let's proceed to step 14:
600 divided by 870 is 0 with a remainder of 600.
Put 0 as the next digit of the answer. 
Result so far: 6001.675862
The remainder is 600 after subtracting 0 from 600.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6000, and continue the process.

Moving on to step 15:
6000 divided by 870 is 6 with a remainder of 780.
Use 6 as the next digit of our solution. 
Result so far: 6001.67586206
Deduct 5220 from 6000 and we're left with 780.
Since there are no more digits in the dividend, we add a zero to the remainder making it 7800, and continue the process.

The final outcome is 6001.67586206, with a leftover of 7.8e-07.