We're dividing 798174 by 45 
We're looking to find how many times 45 goes into 798174.

Moving on to step 1:
The number 45 fits into 7 0 times, leaving a remainder of 7.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtracting 0 from 7 leaves us with 7.
Bring next digit (9) of the dividend behind the 7 and repeat the process: 79 / 45

Step 2:
45 goes into 79 1 times with a remainder of 34.
The number 1 becomes the next digit in our result. 
Result so far: 1.0
Subtract 45 from 79 to get 34.
Include the next digit (8) from the dividend after 34, then repeat: 348 / 45

Moving on to step 3:
45 goes into 348 7 times with a remainder of 33.
The next digit of our result is 7. 
Result so far: 17.0
If we take 315 away from 348, we end up with 33.
Grab the next digit (1) from the dividend, add it to 33, then carry on: 331 / 45

Moving on to step 4:
45 goes into 331 7 times with a remainder of 16.
Use 7 as the next digit of our solution. 
Result so far: 177.0
If we take 315 away from 331, we end up with 16.
Take the next digit (7) from the dividend and append it to 16, then repeat: 167 / 45

On to step 5:
167 divided by 45 is 3 with a remainder of 32.
Record the quotient 3 as the next digit in the result. 
Result so far: 1773.0
Subtract 135 from 167 to get 32.
Take the next digit (4) from the dividend and append it to 32, then repeat: 324 / 45

Going ahead to step 6:
45 goes into 324 7 times with a remainder of 9.
Write down 7 as next digit of the result. 
Result so far: 17737.0
Deduct 315 from 324 and we're left with 9.
Since there are no more digits in the dividend, we add a zero to the remainder making it 90, and continue the process.

Moving on to step 7:
The number 45 fits into 90 2 times, leaving a remainder of 0.
Put 2 as the next digit of the answer. 
Result so far: 17737.2
Subtracting 90 from 90 leaves us 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.

Going ahead to step 8:
When dividing 0 by 45, we get 0 with a remainder of 0.
The next digit of our result is 0. 
Result so far: 17737.2
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.

Step 9:
45 can be fit into 0 0 times, resulting in a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 17737.2
Deduct 0 from 0 and we're left 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.

In conclusion, the division gives 17737.2 with a balance of 0.0.