We divide 40399 by 87
Our goal is to divide 40399 by 87.

Step 1:
The number 87 fits into 4 0 times, leaving a remainder of 4.
The next digit of our result is 0. 
Result so far: 0.0
If we subtract 0 from 4, we get 4.
Include the next digit (0) from the dividend after 4, then repeat: 40 / 87

Going ahead to step 2:
87 can be fit into 40 0 times, resulting in a remainder of 40.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we take 0 away from 40, we end up with 40.
Fetch the next digit (3) from the dividend, attach it to 40 and continue: 403 / 87

On to step 3:
If we divide 403 by 87, we get 4 and a remainder of 55.
Record the quotient 4 as the next digit in the result. 
Result so far: 4.0
The remainder is 55 after subtracting 348 from 403.
Fetch the next digit (9) from the dividend, attach it to 55 and continue: 559 / 87

Advancing to step 4:
559 divided by 87 is 6 with a remainder of 37.
Write down 6 as next digit of the result. 
Result so far: 46.0
Subtract 522 from 559 to get 37.
Bring next digit (9) of the dividend behind the 37 and repeat the process: 379 / 87

Let's proceed to step 5:
The number 87 fits into 379 4 times, leaving a remainder of 31.
Put 4 as the next digit of the answer. 
Result so far: 464.0
The remainder is 31 after subtracting 348 from 379.
Since there are no more digits in the dividend, we add a zero to the remainder making it 310, and continue the process.

Step 6:
87 goes into 310 3 times with a remainder of 49.
Use 3 as the next digit of our solution. 
Result so far: 464.3
If we take 261 away from 310, we end up with 49.
Since there are no more digits in the dividend, we add a zero to the remainder making it 490, and continue the process.

Step 7:
87 can be fit into 490 5 times, resulting in a remainder of 55.
Write down 5 as next digit of the result. 
Result so far: 464.35
Subtracting 435 from 490 leaves us with 55.
Since there are no more digits in the dividend, we add a zero to the remainder making it 550, and continue the process.

Moving on to step 8:
The number 87 fits into 550 6 times, leaving a remainder of 28.
The number 6 becomes the next digit in our result. 
Result so far: 464.356
The remainder is 28 after subtracting 522 from 550.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

On to step 9:
When dividing 280 by 87, we get 3 with a remainder of 19.
Use 3 as the next digit of our solution. 
Result so far: 464.3563
If we subtract 261 from 280, we get 19.
Since there are no more digits in the dividend, we add a zero to the remainder making it 190, and continue the process.

Going ahead to step 10:
If we divide 190 by 87, we get 2 and a remainder of 16.
The next digit of our result is 2. 
Result so far: 464.35632
If we take 174 away from 190, we end up with 16.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

Let's proceed to step 11:
87 goes into 160 1 times with a remainder of 73.
Record the quotient 1 as the next digit in the result. 
Result so far: 464.356321
If we subtract 87 from 160, we get 73.
Since there are no more digits in the dividend, we add a zero to the remainder making it 730, and continue the process.

Advancing to step 12:
730 divided by 87 is 8 with a remainder of 34.
Use 8 as the next digit of our solution. 
Result so far: 464.3563218
If we take 696 away from 730, we end up 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.

Let's proceed to step 13:
If we divide 340 by 87, we get 3 and a remainder of 79.
Write down 3 as next digit of the result. 
Result so far: 464.35632183
Deduct 261 from 340 and we're left with 79.
Since there are no more digits in the dividend, we add a zero to the remainder making it 790, and continue the process.

In conclusion, the division gives 464.35632183 with a balance of 7.9e-08.