Let's divide 387340 by 45
We're looking to find how many times 45 goes into 387340.

Step 1:
3 divided by 45 is 0 with a remainder of 3.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtract 0 from 3 to get 3.
Take the next digit (8) from the dividend and append it to 3, then repeat: 38 / 45

Step 2:
The number 45 fits into 38 0 times, leaving a remainder of 38.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we subtract 0 from 38, we get 38.
Grab the next digit (7) from the dividend, add it to 38, then carry on: 387 / 45

Going ahead to step 3:
When dividing 387 by 45, we get 8 with a remainder of 27.
Record the quotient 8 as the next digit in the result. 
Result so far: 8.0
Deduct 360 from 387 and we're left with 27.
Bring next digit (3) of the dividend behind the 27 and repeat the process: 273 / 45

Going ahead to step 4:
273 divided by 45 is 6 with a remainder of 3.
Write down 6 as next digit of the result. 
Result so far: 86.0
Deduct 270 from 273 and we're left with 3.
Bring next digit (4) of the dividend behind the 3 and repeat the process: 34 / 45

Let's proceed to step 5:
34 divided by 45 is 0 with a remainder of 34.
The next digit of our result is 0. 
Result so far: 860.0
Subtract 0 from 34 to get 34.
Bring next digit (0) of the dividend behind the 34 and repeat the process: 340 / 45

Let's proceed to step 6:
The number 45 fits into 340 7 times, leaving a remainder of 25.
The number 7 becomes the next digit in our result. 
Result so far: 8607.0
Subtract 315 from 340 to 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.

Let's proceed to step 7:
45 can be fit into 250 5 times, resulting in a remainder of 25.
The number 5 becomes the next digit in our result. 
Result so far: 8607.5
Subtracting 225 from 250 leaves us with 25.
Since there are no more digits in the dividend, we add a zero to the remainder making it 250, and continue the process.

Moving on to step 8:
When dividing 250 by 45, we get 5 with a remainder of 25.
Put 5 as the next digit of the answer. 
Result so far: 8607.55
If we take 225 away from 250, we end up with 25.
Since there are no more digits in the dividend, we add a zero to the remainder making it 250, and continue the process.

In conclusion, the division gives 8607.55 with a balance of 0.025.