We're dividing 38294374 by 987 
We want to divide 38294374 by 987.

On to step 1:
If we divide 3 by 987, we get 0 and 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.
Fetch the next digit (8) from the dividend, attach it to 3 and continue: 38 / 987

Advancing to step 2:
38 divided by 987 is 0 with a remainder of 38.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Deduct 0 from 38 and we're left with 38.
Append the next digit (2) from the dividend to 38 and continue with: 382 / 987

Going ahead to step 3:
382 divided by 987 is 0 with a remainder of 382.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtract 0 from 382 to get 382.
Fetch the next digit (9) from the dividend, attach it to 382 and continue: 3829 / 987

Moving on to step 4:
If we divide 3829 by 987, we get 3 and a remainder of 868.
The next digit of our result is 3. 
Result so far: 3.0
Subtract 2961 from 3829 to get 868.
Bring next digit (4) of the dividend behind the 868 and repeat the process: 8684 / 987

Going ahead to step 5:
987 goes into 8684 8 times with a remainder of 788.
Put 8 as the next digit of the answer. 
Result so far: 38.0
Subtract 7896 from 8684 to get 788.
Fetch the next digit (3) from the dividend, attach it to 788 and continue: 7883 / 987

Let's proceed to step 6:
987 goes into 7883 7 times with a remainder of 974.
The next digit of our result is 7. 
Result so far: 387.0
The remainder is 974 after subtracting 6909 from 7883.
Take the next digit (7) from the dividend and append it to 974, then repeat: 9747 / 987

Advancing to step 7:
987 goes into 9747 9 times with a remainder of 864.
Record the quotient 9 as the next digit in the result. 
Result so far: 3879.0
Subtracting 8883 from 9747 leaves us with 864.
Append the next digit (4) from the dividend to 864 and continue with: 8644 / 987

On to step 8:
987 can be fit into 8644 8 times, resulting in a remainder of 748.
Write down 8 as next digit of the result. 
Result so far: 38798.0
Subtract 7896 from 8644 to get 748.
Since there are no more digits in the dividend, we add a zero to the remainder making it 7480, and continue the process.

Step 9:
7480 divided by 987 is 7 with a remainder of 571.
The next digit of our result is 7. 
Result so far: 38798.7
Subtract 6909 from 7480 to get 571.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5710, and continue the process.

Moving on to step 10:
The number 987 fits into 5710 5 times, leaving a remainder of 775.
Record the quotient 5 as the next digit in the result. 
Result so far: 38798.75
If we subtract 4935 from 5710, we get 775.
Since there are no more digits in the dividend, we add a zero to the remainder making it 7750, and continue the process.

Moving on to step 11:
987 can be fit into 7750 7 times, resulting in a remainder of 841.
Record the quotient 7 as the next digit in the result. 
Result so far: 38798.757
Subtract 6909 from 7750 to get 841.
Since there are no more digits in the dividend, we add a zero to the remainder making it 8410, and continue the process.

Advancing to step 12:
When dividing 8410 by 987, we get 8 with a remainder of 514.
Put 8 as the next digit of the answer. 
Result so far: 38798.7578
The remainder is 514 after subtracting 7896 from 8410.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5140, and continue the process.

Advancing to step 13:
If we divide 5140 by 987, we get 5 and a remainder of 205.
Use 5 as the next digit of our solution. 
Result so far: 38798.75785
The remainder is 205 after subtracting 4935 from 5140.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2050, and continue the process.

Going ahead to step 14:
987 can be fit into 2050 2 times, resulting in a remainder of 76.
The next digit of our result is 2. 
Result so far: 38798.757852
Subtracting 1974 from 2050 leaves us with 76.
Since there are no more digits in the dividend, we add a zero to the remainder making it 760, and continue the process.

Step 15:
987 goes into 760 0 times with a remainder of 760.
The number 0 becomes the next digit in our result. 
Result so far: 38798.757852
Deduct 0 from 760 and we're left with 760.
Since there are no more digits in the dividend, we add a zero to the remainder making it 7600, and continue the process.

Going ahead to step 16:
987 goes into 7600 7 times with a remainder of 691.
Write down 7 as next digit of the result. 
Result so far: 38798.75785207
Subtract 6909 from 7600 to get 691.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6910, and continue the process.

In conclusion, the division gives 38798.75785207 with a balance of 6.91e-07.