158271 divided by 38 
We want to divide 158271 by 38.

Step 1:
1 divided by 38 is 0 with a remainder of 1.
The next digit of our result is 0. 
Result so far: 0.0
Subtract 0 from 1 to get 1.
Grab the next digit (5) from the dividend, add it to 1, then carry on: 15 / 38

Advancing to step 2:
38 goes into 15 0 times with a remainder of 15.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtract 0 from 15 to get 15.
Append the next digit (8) from the dividend to 15 and continue with: 158 / 38

Step 3:
38 can be fit into 158 4 times, resulting in a remainder of 6.
Use 4 as the next digit of our solution. 
Result so far: 4.0
Subtracting 152 from 158 leaves us with 6.
Take the next digit (2) from the dividend and append it to 6, then repeat: 62 / 38

Step 4:
If we divide 62 by 38, we get 1 and a remainder of 24.
Use 1 as the next digit of our solution. 
Result so far: 41.0
If we subtract 38 from 62, we get 24.
Grab the next digit (7) from the dividend, add it to 24, then carry on: 247 / 38

On to step 5:
If we divide 247 by 38, we get 6 and a remainder of 19.
Put 6 as the next digit of the answer. 
Result so far: 416.0
If we subtract 228 from 247, we get 19.
Bring next digit (1) of the dividend behind the 19 and repeat the process: 191 / 38

Step 6:
The number 38 fits into 191 5 times, leaving a remainder of 1.
Write down 5 as next digit of the result. 
Result so far: 4165.0
Deduct 190 from 191 and we're left with 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Let's proceed to step 7:
When dividing 10 by 38, we get 0 with a remainder of 10.
Record the quotient 0 as the next digit in the result. 
Result so far: 4165.0
Deduct 0 from 10 and we're left 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.

On to step 8:
100 divided by 38 is 2 with a remainder of 24.
Put 2 as the next digit of the answer. 
Result so far: 4165.02
If we take 76 away from 100, we end up with 24.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

Advancing to step 9:
The number 38 fits into 240 6 times, leaving a remainder of 12.
Record the quotient 6 as the next digit in the result. 
Result so far: 4165.026
Subtract 228 from 240 to 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.

Step 10:
The number 38 fits into 120 3 times, leaving a remainder of 6.
Use 3 as the next digit of our solution. 
Result so far: 4165.0263
Deduct 114 from 120 and we're left with 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

On to step 11:
If we divide 60 by 38, we get 1 and a remainder of 22.
Use 1 as the next digit of our solution. 
Result so far: 4165.02631
Subtract 38 from 60 to get 22.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

Step 12:
When dividing 220 by 38, we get 5 with a remainder of 30.
Record the quotient 5 as the next digit in the result. 
Result so far: 4165.026315
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.

Step 13:
38 goes into 300 7 times with a remainder of 34.
Put 7 as the next digit of the answer. 
Result so far: 4165.0263157
If we subtract 266 from 300, we 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.

On to step 14:
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: 4165.02631578
The remainder is 36 after subtracting 304 from 340.
Since there are no more digits in the dividend, we add a zero to the remainder making it 360, and continue the process.

Our division results in 4165.02631578 with a remaining 3.6e-08.