Let's divide 165158 by 87
We want to divide 165158 by 87.

Let's proceed to step 1:
If we divide 1 by 87, we get 0 and a remainder of 1.
Use 0 as the next digit of our solution. 
Result so far: 0.0
The remainder is 1 after subtracting 0 from 1.
Take the next digit (6) from the dividend and append it to 1, then repeat: 16 / 87

Advancing to step 2:
If we divide 16 by 87, we get 0 and a remainder of 16.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtract 0 from 16 to get 16.
Bring next digit (5) of the dividend behind the 16 and repeat the process: 165 / 87

On to step 3:
87 goes into 165 1 times with a remainder of 78.
The next digit of our result is 1. 
Result so far: 1.0
Subtracting 87 from 165 leaves us with 78.
Include the next digit (1) from the dividend after 78, then repeat: 781 / 87

On to step 4:
87 can be fit into 781 8 times, resulting in a remainder of 85.
Write down 8 as next digit of the result. 
Result so far: 18.0
Subtract 696 from 781 to get 85.
Take the next digit (5) from the dividend and append it to 85, then repeat: 855 / 87

Step 5:
If we divide 855 by 87, we get 9 and a remainder of 72.
Write down 9 as next digit of the result. 
Result so far: 189.0
Subtract 783 from 855 to get 72.
Bring next digit (8) of the dividend behind the 72 and repeat the process: 728 / 87

Moving on to step 6:
87 goes into 728 8 times with a remainder of 32.
Put 8 as the next digit of the answer. 
Result so far: 1898.0
If we subtract 696 from 728, we get 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 7:
320 divided by 87 is 3 with a remainder of 59.
Write down 3 as next digit of the result. 
Result so far: 1898.3
Subtract 261 from 320 to get 59.
Since there are no more digits in the dividend, we add a zero to the remainder making it 590, and continue the process.

Advancing to step 8:
The number 87 fits into 590 6 times, leaving a remainder of 68.
Write down 6 as next digit of the result. 
Result so far: 1898.36
Deduct 522 from 590 and we're left with 68.
Since there are no more digits in the dividend, we add a zero to the remainder making it 680, and continue the process.

Step 9:
87 can be fit into 680 7 times, resulting in a remainder of 71.
Put 7 as the next digit of the answer. 
Result so far: 1898.367
Deduct 609 from 680 and we're left with 71.
Since there are no more digits in the dividend, we add a zero to the remainder making it 710, and continue the process.

Moving on to step 10:
If we divide 710 by 87, we get 8 and a remainder of 14.
Write down 8 as next digit of the result. 
Result so far: 1898.3678
If we take 696 away from 710, 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.

On to step 11:
The number 87 fits into 140 1 times, leaving a remainder of 53.
Put 1 as the next digit of the answer. 
Result so far: 1898.36781
Subtract 87 from 140 to get 53.
Since there are no more digits in the dividend, we add a zero to the remainder making it 530, and continue the process.

Advancing to step 12:
87 can be fit into 530 6 times, resulting in a remainder of 8.
Put 6 as the next digit of the answer. 
Result so far: 1898.367816
Subtract 522 from 530 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.

Step 13:
If we divide 80 by 87, we get 0 and a remainder of 80.
The number 0 becomes the next digit in our result. 
Result so far: 1898.367816
The remainder is 80 after subtracting 0 from 80.
Since there are no more digits in the dividend, we add a zero to the remainder making it 800, and continue the process.

Let's proceed to step 14:
The number 87 fits into 800 9 times, leaving a remainder of 17.
Record the quotient 9 as the next digit in the result. 
Result so far: 1898.36781609
Deduct 783 from 800 and we're left with 17.
Since there are no more digits in the dividend, we add a zero to the remainder making it 170, and continue the process.

In conclusion, the division gives 1898.36781609 with a balance of 1.7e-08.