Let's divide 542066 by 38
We want to divide 542066 by 38.

On to step 1:
38 goes into 5 0 times with a remainder of 5.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtracting 0 from 5 leaves us with 5.
Include the next digit (4) from the dividend after 5, then repeat: 54 / 38

On to step 2:
The number 38 fits into 54 1 times, leaving a remainder of 16.
The number 1 becomes the next digit in our result. 
Result so far: 1.0
Subtracting 38 from 54 leaves us with 16.
Include the next digit (2) from the dividend after 16, then repeat: 162 / 38

On to step 3:
38 goes into 162 4 times with a remainder of 10.
The next digit of our result is 4. 
Result so far: 14.0
If we subtract 152 from 162, we get 10.
Take the next digit (0) from the dividend and append it to 10, then repeat: 100 / 38

Step 4:
38 can be fit into 100 2 times, resulting in a remainder of 24.
The next digit of our result is 2. 
Result so far: 142.0
Subtract 76 from 100 to get 24.
Bring next digit (6) of the dividend behind the 24 and repeat the process: 246 / 38

Let's proceed to step 5:
If we divide 246 by 38, we get 6 and a remainder of 18.
The number 6 becomes the next digit in our result. 
Result so far: 1426.0
Deduct 228 from 246 and we're left with 18.
Append the next digit (6) from the dividend to 18 and continue with: 186 / 38

Going ahead to step 6:
When dividing 186 by 38, we get 4 with a remainder of 34.
Record the quotient 4 as the next digit in the result. 
Result so far: 14264.0
The remainder is 34 after subtracting 152 from 186.
Since there are no more digits in the dividend, we add a zero to the remainder making it 340, and continue the process.

On to step 7:
The number 38 fits into 340 8 times, leaving a remainder of 36.
Put 8 as the next digit of the answer. 
Result so far: 14264.8
If we subtract 304 from 340, we get 36.
Since there are no more digits in the dividend, we add a zero to the remainder making it 360, and continue the process.

Step 8:
If we divide 360 by 38, we get 9 and a remainder of 18.
The number 9 becomes the next digit in our result. 
Result so far: 14264.89
The remainder is 18 after subtracting 342 from 360.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

Step 9:
38 can be fit into 180 4 times, resulting in a remainder of 28.
The next digit of our result is 4. 
Result so far: 14264.894
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.

Moving on to step 10:
38 goes into 280 7 times with a remainder of 14.
Use 7 as the next digit of our solution. 
Result so far: 14264.8947
The remainder is 14 after subtracting 266 from 280.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

Going ahead to step 11:
The number 38 fits into 140 3 times, leaving a remainder of 26.
Write down 3 as next digit of the result. 
Result so far: 14264.89473
If we subtract 114 from 140, we get 26.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

Moving on to step 12:
260 divided by 38 is 6 with a remainder of 32.
The number 6 becomes the next digit in our result. 
Result so far: 14264.894736
If we take 228 away from 260, we end up with 32.
Since there are no more digits in the dividend, we add a zero to the remainder making it 320, and continue the process.

Going ahead to step 13:
38 can be fit into 320 8 times, resulting in a remainder of 16.
Write down 8 as next digit of the result. 
Result so far: 14264.8947368
If we take 304 away from 320, we end up with 16.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

Moving on to step 14:
160 divided by 38 is 4 with a remainder of 8.
The next digit of our result is 4. 
Result so far: 14264.89473684
Subtract 152 from 160 to get 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

The final outcome is 14264.89473684, with a leftover of 8e-09.