40902 ÷ 38 
Let's see how many times 38 fits into 40902.

Let's proceed to step 1:
The number 38 fits into 4 0 times, leaving a remainder of 4.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we take 0 away from 4, we end up with 4.
Take the next digit (0) from the dividend and append it to 4, then repeat: 40 / 38

Advancing to step 2:
40 divided by 38 is 1 with a remainder of 2.
Put 1 as the next digit of the answer. 
Result so far: 1.0
Deduct 38 from 40 and we're left with 2.
Grab the next digit (9) from the dividend, add it to 2, then carry on: 29 / 38

Advancing to step 3:
The number 38 fits into 29 0 times, leaving a remainder of 29.
Record the quotient 0 as the next digit in the result. 
Result so far: 10.0
Subtract 0 from 29 to get 29.
Grab the next digit (0) from the dividend, add it to 29, then carry on: 290 / 38

Step 4:
When dividing 290 by 38, we get 7 with a remainder of 24.
Put 7 as the next digit of the answer. 
Result so far: 107.0
The remainder is 24 after subtracting 266 from 290.
Append the next digit (2) from the dividend to 24 and continue with: 242 / 38

On to step 5:
242 divided by 38 is 6 with a remainder of 14.
The number 6 becomes the next digit in our result. 
Result so far: 1076.0
If we take 228 away from 242, we end up with 14.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

Moving on to step 6:
140 divided by 38 is 3 with a remainder of 26.
Use 3 as the next digit of our solution. 
Result so far: 1076.3
Subtract 114 from 140 to 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.

Let's proceed to step 7:
38 goes into 260 6 times with a remainder of 32.
The next digit of our result is 6. 
Result so far: 1076.36
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.

On to step 8:
320 divided by 38 is 8 with a remainder of 16.
Record the quotient 8 as the next digit in the result. 
Result so far: 1076.368
The remainder is 16 after subtracting 304 from 320.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

Step 9:
160 divided by 38 is 4 with a remainder of 8.
Write down 4 as next digit of the result. 
Result so far: 1076.3684
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.

Advancing to step 10:
The number 38 fits into 80 2 times, leaving a remainder of 4.
The number 2 becomes the next digit in our result. 
Result so far: 1076.36842
Subtract 76 from 80 to get 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Moving on to step 11:
If we divide 40 by 38, we get 1 and a remainder of 2.
Put 1 as the next digit of the answer. 
Result so far: 1076.368421
Subtracting 38 from 40 leaves us 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.

Going ahead to step 12:
20 divided by 38 is 0 with a remainder of 20.
Use 0 as the next digit of our solution. 
Result so far: 1076.368421
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.

Going ahead to step 13:
200 divided by 38 is 5 with a remainder of 10.
Use 5 as the next digit of our solution. 
Result so far: 1076.36842105
If we subtract 190 from 200, we get 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

After the division, we end up with 1076.36842105 and a remainder of 1e-08.