We look at the division of 840784 by 45 
Let's see how many times 45 fits into 840784.

On to step 1:
45 can be fit into 8 0 times, resulting in a remainder of 8.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Deduct 0 from 8 and we're left with 8.
Fetch the next digit (4) from the dividend, attach it to 8 and continue: 84 / 45

Going ahead to step 2:
45 goes into 84 1 times with a remainder of 39.
Use 1 as the next digit of our solution. 
Result so far: 1.0
If we subtract 45 from 84, we get 39.
Fetch the next digit (0) from the dividend, attach it to 39 and continue: 390 / 45

Going ahead to step 3:
45 goes into 390 8 times with a remainder of 30.
Record the quotient 8 as the next digit in the result. 
Result so far: 18.0
Subtracting 360 from 390 leaves us with 30.
Include the next digit (7) from the dividend after 30, then repeat: 307 / 45

Step 4:
The number 45 fits into 307 6 times, leaving a remainder of 37.
The next digit of our result is 6. 
Result so far: 186.0
Deduct 270 from 307 and we're left with 37.
Take the next digit (8) from the dividend and append it to 37, then repeat: 378 / 45

Step 5:
The number 45 fits into 378 8 times, leaving a remainder of 18.
The number 8 becomes the next digit in our result. 
Result so far: 1868.0
If we take 360 away from 378, we end up with 18.
Take the next digit (4) from the dividend and append it to 18, then repeat: 184 / 45

Advancing to step 6:
If we divide 184 by 45, we get 4 and a remainder of 4.
The number 4 becomes the next digit in our result. 
Result so far: 18684.0
Subtracting 180 from 184 leaves us with 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Let's proceed to step 7:
45 goes into 40 0 times with a remainder of 40.
The number 0 becomes the next digit in our result. 
Result so far: 18684.0
The remainder is 40 after subtracting 0 from 40.
Since there are no more digits in the dividend, we add a zero to the remainder making it 400, and continue the process.

Advancing to step 8:
45 can be fit into 400 8 times, resulting in a remainder of 40.
Record the quotient 8 as the next digit in the result. 
Result so far: 18684.08
Deduct 360 from 400 and we're left with 40.
Since there are no more digits in the dividend, we add a zero to the remainder making it 400, and continue the process.

Step 9:
When dividing 400 by 45, we get 8 with a remainder of 40.
The next digit of our result is 8. 
Result so far: 18684.088
If we subtract 360 from 400, we get 40.
Since there are no more digits in the dividend, we add a zero to the remainder making it 400, and continue the process.

In conclusion, the division gives 18684.088 with a balance of 0.004.