We're dividing 517998 by 12 
We're looking to find how many times 12 goes into 517998.

Step 1:
When dividing 5 by 12, we get 0 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 (1) of the dividend behind the 5 and repeat the process: 51 / 12

Going ahead to step 2:
If we divide 51 by 12, we get 4 and a remainder of 3.
Use 4 as the next digit of our solution. 
Result so far: 4.0
If we take 48 away from 51, we end up with 3.
Include the next digit (7) from the dividend after 3, then repeat: 37 / 12

On to step 3:
12 can be fit into 37 3 times, resulting in a remainder of 1.
Use 3 as the next digit of our solution. 
Result so far: 43.0
Subtract 36 from 37 to get 1.
Grab the next digit (9) from the dividend, add it to 1, then carry on: 19 / 12

Going ahead to step 4:
12 goes into 19 1 times with a remainder of 7.
Use 1 as the next digit of our solution. 
Result so far: 431.0
Subtract 12 from 19 to get 7.
Fetch the next digit (9) from the dividend, attach it to 7 and continue: 79 / 12

On to step 5:
If we divide 79 by 12, we get 6 and a remainder of 7.
Write down 6 as next digit of the result. 
Result so far: 4316.0
If we subtract 72 from 79, we get 7.
Include the next digit (8) from the dividend after 7, then repeat: 78 / 12

Let's proceed to step 6:
12 goes into 78 6 times with a remainder of 6.
The number 6 becomes the next digit in our result. 
Result so far: 43166.0
Subtract 72 from 78 to get 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Step 7:
12 goes into 60 5 times with a remainder of 0.
Use 5 as the next digit of our solution. 
Result so far: 43166.5
The remainder is 0 after subtracting 60 from 60.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Advancing to step 8:
If we divide 0 by 12, we get 0 and a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 43166.5
Subtracting 0 from 0 leaves us with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Step 9:
The number 12 fits into 0 0 times, leaving a remainder of 0.
The next digit of our result is 0. 
Result so far: 43166.5
The remainder is 0 after subtracting 0 from 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

The final outcome is 43166.5, with a leftover of 0.0.