We're dividing 509993 by 38 
Let's see how many times 38 fits into 509993.

Moving on to step 1:
If we divide 5 by 38, we get 0 and 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.
Append the next digit (0) from the dividend to 5 and continue with: 50 / 38

Advancing to step 2:
38 can be fit into 50 1 times, resulting in a remainder of 12.
The next digit of our result is 1. 
Result so far: 1.0
Subtract 38 from 50 to get 12.
Grab the next digit (9) from the dividend, add it to 12, then carry on: 129 / 38

Advancing to step 3:
38 can be fit into 129 3 times, resulting in a remainder of 15.
The next digit of our result is 3. 
Result so far: 13.0
If we take 114 away from 129, we end up with 15.
Grab the next digit (9) from the dividend, add it to 15, then carry on: 159 / 38

Going ahead to step 4:
159 divided by 38 is 4 with a remainder of 7.
Record the quotient 4 as the next digit in the result. 
Result so far: 134.0
Subtract 152 from 159 to get 7.
Grab the next digit (9) from the dividend, add it to 7, then carry on: 79 / 38

Moving on to step 5:
38 can be fit into 79 2 times, resulting in a remainder of 3.
The next digit of our result is 2. 
Result so far: 1342.0
If we take 76 away from 79, we end up with 3.
Fetch the next digit (3) from the dividend, attach it to 3 and continue: 33 / 38

Going ahead to step 6:
33 divided by 38 is 0 with a remainder of 33.
Use 0 as the next digit of our solution. 
Result so far: 13420.0
If we take 0 away from 33, we end up with 33.
Since there are no more digits in the dividend, we add a zero to the remainder making it 330, and continue the process.

Let's proceed to step 7:
330 divided by 38 is 8 with a remainder of 26.
The next digit of our result is 8. 
Result so far: 13420.8
The remainder is 26 after subtracting 304 from 330.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

Step 8:
When dividing 260 by 38, we get 6 with a remainder of 32.
The next digit of our result is 6. 
Result so far: 13420.86
The remainder is 32 after subtracting 228 from 260.
Since there are no more digits in the dividend, we add a zero to the remainder making it 320, and continue the process.

Moving on to step 9:
38 can be fit into 320 8 times, resulting in a remainder of 16.
Record the quotient 8 as the next digit in the result. 
Result so far: 13420.868
Subtract 304 from 320 to get 16.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

Step 10:
When dividing 160 by 38, we get 4 with a remainder of 8.
Write down 4 as next digit of the result. 
Result so far: 13420.8684
Deduct 152 from 160 and we're left with 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Let's proceed to step 11:
38 goes into 80 2 times with a remainder of 4.
The number 2 becomes the next digit in our result. 
Result so far: 13420.86842
If we take 76 away from 80, we end up with 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Advancing to step 12:
38 can be fit into 40 1 times, resulting in a remainder of 2.
The number 1 becomes the next digit in our result. 
Result so far: 13420.868421
If we take 38 away from 40, we end up with 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Moving on to step 13:
38 can be fit into 20 0 times, resulting in a remainder of 20.
Put 0 as the next digit of the answer. 
Result so far: 13420.868421
If we take 0 away from 20, we end up with 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

On to step 14:
If we divide 200 by 38, we get 5 and a remainder of 10.
Write down 5 as next digit of the result. 
Result so far: 13420.86842105
Subtracting 190 from 200 leaves us 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.

The final outcome is 13420.86842105, with a leftover of 1e-08.