We're dividing 38740887 by 366 
Our goal is to divide 38740887 by 366.

Moving on to step 1:
366 goes into 3 0 times with a remainder of 3.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Deduct 0 from 3 and we're left with 3.
Grab the next digit (8) from the dividend, add it to 3, then carry on: 38 / 366

Let's proceed to step 2:
When dividing 38 by 366, we get 0 with a remainder of 38.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Deduct 0 from 38 and we're left with 38.
Bring next digit (7) of the dividend behind the 38 and repeat the process: 387 / 366

Moving on to step 3:
366 goes into 387 1 times with a remainder of 21.
Write down 1 as next digit of the result. 
Result so far: 1.0
Deduct 366 from 387 and we're left with 21.
Fetch the next digit (4) from the dividend, attach it to 21 and continue: 214 / 366

Advancing to step 4:
366 can be fit into 214 0 times, resulting in a remainder of 214.
The next digit of our result is 0. 
Result so far: 10.0
Subtract 0 from 214 to get 214.
Take the next digit (0) from the dividend and append it to 214, then repeat: 2140 / 366

On to step 5:
366 goes into 2140 5 times with a remainder of 310.
Record the quotient 5 as the next digit in the result. 
Result so far: 105.0
If we subtract 1830 from 2140, we get 310.
Bring next digit (8) of the dividend behind the 310 and repeat the process: 3108 / 366

Advancing to step 6:
If we divide 3108 by 366, we get 8 and a remainder of 180.
The next digit of our result is 8. 
Result so far: 1058.0
Subtracting 2928 from 3108 leaves us with 180.
Fetch the next digit (8) from the dividend, attach it to 180 and continue: 1808 / 366

Advancing to step 7:
1808 divided by 366 is 4 with a remainder of 344.
Use 4 as the next digit of our solution. 
Result so far: 10584.0
Subtracting 1464 from 1808 leaves us with 344.
Grab the next digit (7) from the dividend, add it to 344, then carry on: 3447 / 366

Advancing to step 8:
If we divide 3447 by 366, we get 9 and a remainder of 153.
Record the quotient 9 as the next digit in the result. 
Result so far: 105849.0
The remainder is 153 after subtracting 3294 from 3447.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1530, and continue the process.

Step 9:
The number 366 fits into 1530 4 times, leaving a remainder of 66.
Put 4 as the next digit of the answer. 
Result so far: 105849.4
Subtract 1464 from 1530 to get 66.
Since there are no more digits in the dividend, we add a zero to the remainder making it 660, and continue the process.

Moving on to step 10:
660 divided by 366 is 1 with a remainder of 294.
The number 1 becomes the next digit in our result. 
Result so far: 105849.41
The remainder is 294 after subtracting 366 from 660.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2940, and continue the process.

Step 11:
If we divide 2940 by 366, we get 8 and a remainder of 12.
The number 8 becomes the next digit in our result. 
Result so far: 105849.418
Deduct 2928 from 2940 and we're left with 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 12:
366 can be fit into 120 0 times, resulting in a remainder of 120.
The next digit of our result is 0. 
Result so far: 105849.418
Subtract 0 from 120 to get 120.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1200, and continue the process.

On to step 13:
If we divide 1200 by 366, we get 3 and a remainder of 102.
Put 3 as the next digit of the answer. 
Result so far: 105849.41803
Subtract 1098 from 1200 to get 102.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1020, and continue the process.

Advancing to step 14:
If we divide 1020 by 366, we get 2 and a remainder of 288.
The next digit of our result is 2. 
Result so far: 105849.418032
If we subtract 732 from 1020, we get 288.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2880, and continue the process.

Going ahead to step 15:
The number 366 fits into 2880 7 times, leaving a remainder of 318.
Use 7 as the next digit of our solution. 
Result so far: 105849.4180327
If we take 2562 away from 2880, we end up with 318.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3180, and continue the process.

Going ahead to step 16:
When dividing 3180 by 366, we get 8 with a remainder of 252.
Record the quotient 8 as the next digit in the result. 
Result so far: 105849.41803278
Deduct 2928 from 3180 and we're left with 252.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2520, and continue the process.

Our division results in 105849.41803278 with a remaining 2.52e-07.