We're dividing 495787 by 503 
Our goal is to divide 495787 by 503.

Advancing to step 1:
4 divided by 503 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.
Include the next digit (9) from the dividend after 4, then repeat: 49 / 503

Moving on to step 2:
49 divided by 503 is 0 with a remainder of 49.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
The remainder is 49 after subtracting 0 from 49.
Take the next digit (5) from the dividend and append it to 49, then repeat: 495 / 503

Going ahead to step 3:
503 goes into 495 0 times with a remainder of 495.
Use 0 as the next digit of our solution. 
Result so far: 0.0
The remainder is 495 after subtracting 0 from 495.
Append the next digit (7) from the dividend to 495 and continue with: 4957 / 503

Advancing to step 4:
503 can be fit into 4957 9 times, resulting in a remainder of 430.
Record the quotient 9 as the next digit in the result. 
Result so far: 9.0
Deduct 4527 from 4957 and we're left with 430.
Fetch the next digit (8) from the dividend, attach it to 430 and continue: 4308 / 503

Moving on to step 5:
503 goes into 4308 8 times with a remainder of 284.
Write down 8 as next digit of the result. 
Result so far: 98.0
If we subtract 4024 from 4308, we get 284.
Take the next digit (7) from the dividend and append it to 284, then repeat: 2847 / 503

Step 6:
503 goes into 2847 5 times with a remainder of 332.
Put 5 as the next digit of the answer. 
Result so far: 985.0
Subtract 2515 from 2847 to get 332.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3320, and continue the process.

Advancing to step 7:
503 goes into 3320 6 times with a remainder of 302.
The number 6 becomes the next digit in our result. 
Result so far: 985.6
Subtracting 3018 from 3320 leaves us with 302.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3020, and continue the process.

Moving on to step 8:
If we divide 3020 by 503, we get 6 and a remainder of 2.
The number 6 becomes the next digit in our result. 
Result so far: 985.66
The remainder is 2 after subtracting 3018 from 3020.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

The final outcome is 985.66, with a leftover of 0.002.