We look at the division of 145870 by 87 
We want to figure out the number of times 145870 can be divided by 87.

Moving on 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.
Append the next digit (4) from the dividend to 1 and continue with: 14 / 87

Moving on to step 2:
87 goes into 14 0 times with a remainder of 14.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
The remainder is 14 after subtracting 0 from 14.
Grab the next digit (5) from the dividend, add it to 14, then carry on: 145 / 87

Step 3:
The number 87 fits into 145 1 times, leaving a remainder of 58.
Write down 1 as next digit of the result. 
Result so far: 1.0
Subtracting 87 from 145 leaves us with 58.
Fetch the next digit (8) from the dividend, attach it to 58 and continue: 588 / 87

On to step 4:
588 divided by 87 is 6 with a remainder of 66.
Put 6 as the next digit of the answer. 
Result so far: 16.0
Subtract 522 from 588 to get 66.
Fetch the next digit (7) from the dividend, attach it to 66 and continue: 667 / 87

On to step 5:
The number 87 fits into 667 7 times, leaving a remainder of 58.
Write down 7 as next digit of the result. 
Result so far: 167.0
Subtract 609 from 667 to get 58.
Include the next digit (0) from the dividend after 58, then repeat: 580 / 87

Moving on to step 6:
87 can be fit into 580 6 times, resulting in a remainder of 58.
The next digit of our result is 6. 
Result so far: 1676.0
Subtract 522 from 580 to get 58.
Since there are no more digits in the dividend, we add a zero to the remainder making it 580, and continue the process.

Moving on to step 7:
87 goes into 580 6 times with a remainder of 58.
The next digit of our result is 6. 
Result so far: 1676.6
If we subtract 522 from 580, we get 58.
Since there are no more digits in the dividend, we add a zero to the remainder making it 580, and continue the process.

Moving on to step 8:
87 can be fit into 580 6 times, resulting in a remainder of 58.
Use 6 as the next digit of our solution. 
Result so far: 1676.66
Subtract 522 from 580 to get 58.
Since there are no more digits in the dividend, we add a zero to the remainder making it 580, and continue the process.

After the division, we end up with 1676.66 and a remainder of 0.058.