We divide 502498 by 18
Let's see how many times 18 fits into 502498.

Moving on to step 1:
18 goes into 5 0 times with a remainder of 5.
The next digit of our result is 0. 
Result so far: 0.0
The remainder is 5 after subtracting 0 from 5.
Append the next digit (0) from the dividend to 5 and continue with: 50 / 18

On to step 2:
If we divide 50 by 18, we get 2 and a remainder of 14.
Put 2 as the next digit of the answer. 
Result so far: 2.0
Subtracting 36 from 50 leaves us with 14.
Grab the next digit (2) from the dividend, add it to 14, then carry on: 142 / 18

Going ahead to step 3:
The number 18 fits into 142 7 times, leaving a remainder of 16.
The next digit of our result is 7. 
Result so far: 27.0
If we subtract 126 from 142, we get 16.
Fetch the next digit (4) from the dividend, attach it to 16 and continue: 164 / 18

Going ahead to step 4:
If we divide 164 by 18, we get 9 and a remainder of 2.
Write down 9 as next digit of the result. 
Result so far: 279.0
If we take 162 away from 164, we end up with 2.
Grab the next digit (9) from the dividend, add it to 2, then carry on: 29 / 18

On to step 5:
The number 18 fits into 29 1 times, leaving a remainder of 11.
Put 1 as the next digit of the answer. 
Result so far: 2791.0
Deduct 18 from 29 and we're left with 11.
Append the next digit (8) from the dividend to 11 and continue with: 118 / 18

Moving on to step 6:
18 goes into 118 6 times with a remainder of 10.
Put 6 as the next digit of the answer. 
Result so far: 27916.0
If we take 108 away from 118, we end up with 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Step 7:
18 goes into 100 5 times with a remainder of 10.
Record the quotient 5 as the next digit in the result. 
Result so far: 27916.5
If we take 90 away from 100, we end up with 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Moving on to step 8:
100 divided by 18 is 5 with a remainder of 10.
The next digit of our result is 5. 
Result so far: 27916.55
If we subtract 90 from 100, we get 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

The final outcome is 27916.55, with a leftover of 0.01.