Let's divide 394740 by 45
We want to figure out the number of times 394740 can be divided by 45.

Advancing to step 1:
The number 45 fits into 3 0 times, leaving a remainder of 3.
The next digit of our result is 0. 
Result so far: 0.0
Subtracting 0 from 3 leaves us with 3.
Include the next digit (9) from the dividend after 3, then repeat: 39 / 45

Going ahead to step 2:
When dividing 39 by 45, we get 0 with a remainder of 39.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtracting 0 from 39 leaves us with 39.
Bring next digit (4) of the dividend behind the 39 and repeat the process: 394 / 45

Going ahead to step 3:
45 can be fit into 394 8 times, resulting in a remainder of 34.
Write down 8 as next digit of the result. 
Result so far: 8.0
The remainder is 34 after subtracting 360 from 394.
Include the next digit (7) from the dividend after 34, then repeat: 347 / 45

Let's proceed to step 4:
The number 45 fits into 347 7 times, leaving a remainder of 32.
Use 7 as the next digit of our solution. 
Result so far: 87.0
If we subtract 315 from 347, we get 32.
Include the next digit (4) from the dividend after 32, then repeat: 324 / 45

Step 5:
The number 45 fits into 324 7 times, leaving a remainder of 9.
The next digit of our result is 7. 
Result so far: 877.0
Subtracting 315 from 324 leaves us with 9.
Take the next digit (0) from the dividend and append it to 9, then repeat: 90 / 45

Let's proceed to step 6:
The number 45 fits into 90 2 times, leaving a remainder of 0.
The next digit of our result is 2. 
Result so far: 8772.0
The remainder is 0 after subtracting 90 from 90.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Advancing to step 7:
When dividing 0 by 45, we get 0 with a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 8772.0
Subtract 0 from 0 to get 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Going ahead to step 8:
0 divided by 45 is 0 with a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 8772.0
If we take 0 away from 0, we end up with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

The final result is 8772.0 with a remainder of 0.0.