840266 ÷ 38 
Our goal is to divide 840266 by 38.

Moving on to step 1:
The number 38 fits into 8 0 times, leaving a remainder of 8.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
The remainder is 8 after subtracting 0 from 8.
Append the next digit (4) from the dividend to 8 and continue with: 84 / 38

On to step 2:
38 can be fit into 84 2 times, resulting in a remainder of 8.
Write down 2 as next digit of the result. 
Result so far: 2.0
The remainder is 8 after subtracting 76 from 84.
Grab the next digit (0) from the dividend, add it to 8, then carry on: 80 / 38

On to step 3:
If we divide 80 by 38, we get 2 and a remainder of 4.
Record the quotient 2 as the next digit in the result. 
Result so far: 22.0
Subtract 76 from 80 to get 4.
Bring next digit (2) of the dividend behind the 4 and repeat the process: 42 / 38

Let's proceed to step 4:
If we divide 42 by 38, we get 1 and a remainder of 4.
Record the quotient 1 as the next digit in the result. 
Result so far: 221.0
The remainder is 4 after subtracting 38 from 42.
Include the next digit (6) from the dividend after 4, then repeat: 46 / 38

Going ahead to step 5:
38 goes into 46 1 times with a remainder of 8.
The number 1 becomes the next digit in our result. 
Result so far: 2211.0
Subtracting 38 from 46 leaves us with 8.
Take the next digit (6) from the dividend and append it to 8, then repeat: 86 / 38

On to step 6:
If we divide 86 by 38, we get 2 and a remainder of 10.
Use 2 as the next digit of our solution. 
Result so far: 22112.0
If we take 76 away from 86, we end up 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.

Let's proceed to step 7:
If we divide 100 by 38, we get 2 and a remainder of 24.
Record the quotient 2 as the next digit in the result. 
Result so far: 22112.2
Subtracting 76 from 100 leaves us 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 8:
If we divide 240 by 38, we get 6 and a remainder of 12.
Put 6 as the next digit of the answer. 
Result so far: 22112.26
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.

Advancing to step 9:
38 goes into 120 3 times with a remainder of 6.
Use 3 as the next digit of our solution. 
Result so far: 22112.263
Subtracting 114 from 120 leaves us 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.

Advancing to step 10:
If we divide 60 by 38, we get 1 and a remainder of 22.
Write down 1 as next digit of the result. 
Result so far: 22112.2631
The remainder is 22 after subtracting 38 from 60.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

Let's proceed to step 11:
38 can be fit into 220 5 times, resulting in a remainder of 30.
The number 5 becomes the next digit in our result. 
Result so far: 22112.26315
Deduct 190 from 220 and we're left 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.

On to step 12:
If we divide 300 by 38, we get 7 and a remainder of 34.
Use 7 as the next digit of our solution. 
Result so far: 22112.263157
Deduct 266 from 300 and we're left with 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 13:
38 can be fit into 340 8 times, resulting in a remainder of 36.
The next digit of our result is 8. 
Result so far: 22112.2631578
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.

Let's proceed to step 14:
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: 22112.26315789
Deduct 342 from 360 and we're left with 18.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

Our division results in 22112.26315789 with a remaining 1.8e-08.