We look at the division of 5011704 by 999 
Our goal is to divide 5011704 by 999.

Moving on to step 1:
If we divide 5 by 999, we get 0 and a remainder of 5.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we take 0 away from 5, we end up with 5.
Fetch the next digit (0) from the dividend, attach it to 5 and continue: 50 / 999

Advancing to step 2:
When dividing 50 by 999, we get 0 with a remainder of 50.
The next digit of our result is 0. 
Result so far: 0.0
If we subtract 0 from 50, we get 50.
Fetch the next digit (1) from the dividend, attach it to 50 and continue: 501 / 999

Let's proceed to step 3:
If we divide 501 by 999, we get 0 and a remainder of 501.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtracting 0 from 501 leaves us with 501.
Take the next digit (1) from the dividend and append it to 501, then repeat: 5011 / 999

Going ahead to step 4:
When dividing 5011 by 999, we get 5 with a remainder of 16.
The number 5 becomes the next digit in our result. 
Result so far: 5.0
Subtract 4995 from 5011 to get 16.
Grab the next digit (7) from the dividend, add it to 16, then carry on: 167 / 999

Moving on to step 5:
999 goes into 167 0 times with a remainder of 167.
The number 0 becomes the next digit in our result. 
Result so far: 50.0
Subtracting 0 from 167 leaves us with 167.
Append the next digit (0) from the dividend to 167 and continue with: 1670 / 999

Moving on to step 6:
If we divide 1670 by 999, we get 1 and a remainder of 671.
Record the quotient 1 as the next digit in the result. 
Result so far: 501.0
Subtracting 999 from 1670 leaves us with 671.
Bring next digit (4) of the dividend behind the 671 and repeat the process: 6714 / 999

Step 7:
The number 999 fits into 6714 6 times, leaving a remainder of 720.
The next digit of our result is 6. 
Result so far: 5016.0
Subtracting 5994 from 6714 leaves us with 720.
Since there are no more digits in the dividend, we add a zero to the remainder making it 7200, and continue the process.

On to step 8:
If we divide 7200 by 999, we get 7 and a remainder of 207.
Use 7 as the next digit of our solution. 
Result so far: 5016.7
Subtracting 6993 from 7200 leaves us with 207.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2070, and continue the process.

Going ahead to step 9:
When dividing 2070 by 999, we get 2 with a remainder of 72.
The number 2 becomes the next digit in our result. 
Result so far: 5016.72
Deduct 1998 from 2070 and we're left with 72.
Since there are no more digits in the dividend, we add a zero to the remainder making it 720, and continue the process.

On to step 10:
720 divided by 999 is 0 with a remainder of 720.
The next digit of our result is 0. 
Result so far: 5016.72
If we take 0 away from 720, we end up with 720.
Since there are no more digits in the dividend, we add a zero to the remainder making it 7200, and continue the process.

Advancing to step 11:
When dividing 7200 by 999, we get 7 with a remainder of 207.
The next digit of our result is 7. 
Result so far: 5016.7207
Subtracting 6993 from 7200 leaves us with 207.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2070, and continue the process.

Moving on to step 12:
2070 divided by 999 is 2 with a remainder of 72.
Put 2 as the next digit of the answer. 
Result so far: 5016.72072
The remainder is 72 after subtracting 1998 from 2070.
Since there are no more digits in the dividend, we add a zero to the remainder making it 720, and continue the process.

Moving on to step 13:
720 divided by 999 is 0 with a remainder of 720.
Use 0 as the next digit of our solution. 
Result so far: 5016.72072
If we take 0 away from 720, we end up with 720.
Since there are no more digits in the dividend, we add a zero to the remainder making it 7200, and continue the process.

Going ahead to step 14:
999 can be fit into 7200 7 times, resulting in a remainder of 207.
The next digit of our result is 7. 
Result so far: 5016.7207207
The remainder is 207 after subtracting 6993 from 7200.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2070, and continue the process.

Advancing to step 15:
999 can be fit into 2070 2 times, resulting in a remainder of 72.
Write down 2 as next digit of the result. 
Result so far: 5016.72072072
Deduct 1998 from 2070 and we're left with 72.
Since there are no more digits in the dividend, we add a zero to the remainder making it 720, and continue the process.

Our division results in 5016.72072072 with a remaining 7.2e-08.