We're dividing 587998 by 38 
Our goal is to divide 587998 by 38.

Step 1:
5 divided by 38 is 0 with a remainder of 5.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we take 0 away from 5, we end up with 5.
Include the next digit (8) from the dividend after 5, then repeat: 58 / 38

Let's proceed to step 2:
58 divided by 38 is 1 with a remainder of 20.
Record the quotient 1 as the next digit in the result. 
Result so far: 1.0
If we subtract 38 from 58, we get 20.
Append the next digit (7) from the dividend to 20 and continue with: 207 / 38

Let's proceed to step 3:
38 can be fit into 207 5 times, resulting in a remainder of 17.
The number 5 becomes the next digit in our result. 
Result so far: 15.0
Subtracting 190 from 207 leaves us with 17.
Take the next digit (9) from the dividend and append it to 17, then repeat: 179 / 38

Moving on to step 4:
When dividing 179 by 38, we get 4 with a remainder of 27.
Put 4 as the next digit of the answer. 
Result so far: 154.0
If we subtract 152 from 179, we get 27.
Include the next digit (9) from the dividend after 27, then repeat: 279 / 38

Moving on to step 5:
279 divided by 38 is 7 with a remainder of 13.
The next digit of our result is 7. 
Result so far: 1547.0
The remainder is 13 after subtracting 266 from 279.
Bring next digit (8) of the dividend behind the 13 and repeat the process: 138 / 38

Moving on to step 6:
The number 38 fits into 138 3 times, leaving a remainder of 24.
The next digit of our result is 3. 
Result so far: 15473.0
The remainder is 24 after subtracting 114 from 138.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

Moving on to step 7:
240 divided by 38 is 6 with a remainder of 12.
Write down 6 as next digit of the result. 
Result so far: 15473.6
If we subtract 228 from 240, we get 12.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

Moving on to step 8:
When dividing 120 by 38, we get 3 with a remainder of 6.
Put 3 as the next digit of the answer. 
Result so far: 15473.63
If we subtract 114 from 120, we 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.

Moving on to step 9:
When dividing 60 by 38, we get 1 with a remainder of 22.
Put 1 as the next digit of the answer. 
Result so far: 15473.631
Subtracting 38 from 60 leaves us with 22.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

On to step 10:
220 divided by 38 is 5 with a remainder of 30.
Use 5 as the next digit of our solution. 
Result so far: 15473.6315
Subtracting 190 from 220 leaves us with 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Let's proceed to step 11:
38 can be fit into 300 7 times, resulting in a remainder of 34.
The next digit of our result is 7. 
Result so far: 15473.63157
Subtract 266 from 300 to get 34.
Since there are no more digits in the dividend, we add a zero to the remainder making it 340, and continue the process.

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

On to step 13:
38 can be fit into 360 9 times, resulting in a remainder of 18.
The number 9 becomes the next digit in our result. 
Result so far: 15473.6315789
Subtract 342 from 360 to get 18.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

Moving on to step 14:
38 goes into 180 4 times with a remainder of 28.
Write down 4 as next digit of the result. 
Result so far: 15473.63157894
If we subtract 152 from 180, we get 28.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

The final outcome is 15473.63157894, with a leftover of 2.8e-08.