We divide 5171166 by 999
Our goal is to divide 5171166 by 999.

Advancing to step 1:
5 divided by 999 is 0 with a remainder of 5.
The next digit of our result is 0. 
Result so far: 0.0
Deduct 0 from 5 and we're left with 5.
Take the next digit (1) from the dividend and append it to 5, then repeat: 51 / 999

On to step 2:
999 can be fit into 51 0 times, resulting in a remainder of 51.
The next digit of our result is 0. 
Result so far: 0.0
The remainder is 51 after subtracting 0 from 51.
Append the next digit (7) from the dividend to 51 and continue with: 517 / 999

Let's proceed to step 3:
If we divide 517 by 999, we get 0 and a remainder of 517.
The next digit of our result is 0. 
Result so far: 0.0
Subtract 0 from 517 to get 517.
Fetch the next digit (1) from the dividend, attach it to 517 and continue: 5171 / 999

Moving on to step 4:
999 can be fit into 5171 5 times, resulting in a remainder of 176.
Record the quotient 5 as the next digit in the result. 
Result so far: 5.0
Subtract 4995 from 5171 to get 176.
Grab the next digit (1) from the dividend, add it to 176, then carry on: 1761 / 999

Advancing to step 5:
1761 divided by 999 is 1 with a remainder of 762.
Write down 1 as next digit of the result. 
Result so far: 51.0
Subtract 999 from 1761 to get 762.
Append the next digit (6) from the dividend to 762 and continue with: 7626 / 999

Step 6:
If we divide 7626 by 999, we get 7 and a remainder of 633.
The next digit of our result is 7. 
Result so far: 517.0
If we subtract 6993 from 7626, we get 633.
Fetch the next digit (6) from the dividend, attach it to 633 and continue: 6336 / 999

Advancing to step 7:
999 goes into 6336 6 times with a remainder of 342.
Write down 6 as next digit of the result. 
Result so far: 5176.0
The remainder is 342 after subtracting 5994 from 6336.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3420, and continue the process.

Going ahead to step 8:
999 goes into 3420 3 times with a remainder of 423.
The number 3 becomes the next digit in our result. 
Result so far: 5176.3
If we take 2997 away from 3420, we end up with 423.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4230, and continue the process.

On to step 9:
The number 999 fits into 4230 4 times, leaving a remainder of 234.
The next digit of our result is 4. 
Result so far: 5176.34
Subtracting 3996 from 4230 leaves us with 234.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2340, and continue the process.

Let's proceed to step 10:
If we divide 2340 by 999, we get 2 and a remainder of 342.
The next digit of our result is 2. 
Result so far: 5176.342
Subtract 1998 from 2340 to get 342.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3420, and continue the process.

Going ahead to step 11:
If we divide 3420 by 999, we get 3 and a remainder of 423.
Put 3 as the next digit of the answer. 
Result so far: 5176.3423
Subtracting 2997 from 3420 leaves us with 423.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4230, and continue the process.

Step 12:
When dividing 4230 by 999, we get 4 with a remainder of 234.
The next digit of our result is 4. 
Result so far: 5176.34234
Deduct 3996 from 4230 and we're left with 234.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2340, and continue the process.

Advancing to step 13:
2340 divided by 999 is 2 with a remainder of 342.
The next digit of our result is 2. 
Result so far: 5176.342342
Subtract 1998 from 2340 to get 342.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3420, and continue the process.

On to step 14:
999 can be fit into 3420 3 times, resulting in a remainder of 423.
The next digit of our result is 3. 
Result so far: 5176.3423423
Subtract 2997 from 3420 to get 423.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4230, and continue the process.

On to step 15:
The number 999 fits into 4230 4 times, leaving a remainder of 234.
Write down 4 as next digit of the result. 
Result so far: 5176.34234234
Subtract 3996 from 4230 to get 234.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2340, and continue the process.

After the division, we end up with 5176.34234234 and a remainder of 2.34e-07.