40231 divided by 87 
We're looking to find how many times 87 goes into 40231.

On to step 1:
4 divided by 87 is 0 with a remainder of 4.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we take 0 away from 4, we end up with 4.
Include the next digit (0) from the dividend after 4, then repeat: 40 / 87

Step 2:
87 goes into 40 0 times with a remainder of 40.
The next digit of our result is 0. 
Result so far: 0.0
Subtracting 0 from 40 leaves us with 40.
Fetch the next digit (2) from the dividend, attach it to 40 and continue: 402 / 87

Advancing to step 3:
When dividing 402 by 87, we get 4 with a remainder of 54.
Put 4 as the next digit of the answer. 
Result so far: 4.0
If we subtract 348 from 402, we get 54.
Take the next digit (3) from the dividend and append it to 54, then repeat: 543 / 87

Advancing to step 4:
When dividing 543 by 87, we get 6 with a remainder of 21.
The next digit of our result is 6. 
Result so far: 46.0
Deduct 522 from 543 and we're left with 21.
Take the next digit (1) from the dividend and append it to 21, then repeat: 211 / 87

Let's proceed to step 5:
The number 87 fits into 211 2 times, leaving a remainder of 37.
The number 2 becomes the next digit in our result. 
Result so far: 462.0
If we subtract 174 from 211, we get 37.
Since there are no more digits in the dividend, we add a zero to the remainder making it 370, and continue the process.

Advancing to step 6:
When dividing 370 by 87, we get 4 with a remainder of 22.
Record the quotient 4 as the next digit in the result. 
Result so far: 462.4
If we subtract 348 from 370, we get 22.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

Step 7:
220 divided by 87 is 2 with a remainder of 46.
Put 2 as the next digit of the answer. 
Result so far: 462.42
If we subtract 174 from 220, we get 46.
Since there are no more digits in the dividend, we add a zero to the remainder making it 460, and continue the process.

Advancing to step 8:
When dividing 460 by 87, we get 5 with a remainder of 25.
Put 5 as the next digit of the answer. 
Result so far: 462.425
If we subtract 435 from 460, we get 25.
Since there are no more digits in the dividend, we add a zero to the remainder making it 250, and continue the process.

Step 9:
When dividing 250 by 87, we get 2 with a remainder of 76.
The number 2 becomes the next digit in our result. 
Result so far: 462.4252
Subtracting 174 from 250 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.

Moving on to step 10:
87 goes into 760 8 times with a remainder of 64.
The number 8 becomes the next digit in our result. 
Result so far: 462.42528
If we take 696 away from 760, we end up with 64.
Since there are no more digits in the dividend, we add a zero to the remainder making it 640, and continue the process.

Moving on to step 11:
When dividing 640 by 87, we get 7 with a remainder of 31.
Write down 7 as next digit of the result. 
Result so far: 462.425287
Subtracting 609 from 640 leaves us with 31.
Since there are no more digits in the dividend, we add a zero to the remainder making it 310, and continue the process.

Going ahead to step 12:
310 divided by 87 is 3 with a remainder of 49.
The next digit of our result is 3. 
Result so far: 462.4252873
Deduct 261 from 310 and we're left 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.

Advancing to step 13:
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: 462.42528735
If we subtract 435 from 490, we get 55.
Since there are no more digits in the dividend, we add a zero to the remainder making it 550, and continue the process.

The final result is 462.42528735 with a remainder of 5.5e-08.