We're dividing 997982 by 45 
Our goal is to divide 997982 by 45.

Going ahead to step 1:
When dividing 9 by 45, we get 0 with a remainder of 9.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
The remainder is 9 after subtracting 0 from 9.
Take the next digit (9) from the dividend and append it to 9, then repeat: 99 / 45

Step 2:
45 goes into 99 2 times with a remainder of 9.
The number 2 becomes the next digit in our result. 
Result so far: 2.0
The remainder is 9 after subtracting 90 from 99.
Grab the next digit (7) from the dividend, add it to 9, then carry on: 97 / 45

Moving on to step 3:
The number 45 fits into 97 2 times, leaving a remainder of 7.
Write down 2 as next digit of the result. 
Result so far: 22.0
If we subtract 90 from 97, we get 7.
Take the next digit (9) from the dividend and append it to 7, then repeat: 79 / 45

Moving on to step 4:
The number 45 fits into 79 1 times, leaving a remainder of 34.
Record the quotient 1 as the next digit in the result. 
Result so far: 221.0
Deduct 45 from 79 and we're left with 34.
Grab the next digit (8) from the dividend, add it to 34, then carry on: 348 / 45

Advancing to step 5:
348 divided by 45 is 7 with a remainder of 33.
The number 7 becomes the next digit in our result. 
Result so far: 2217.0
Deduct 315 from 348 and we're left with 33.
Grab the next digit (2) from the dividend, add it to 33, then carry on: 332 / 45

Advancing to step 6:
If we divide 332 by 45, we get 7 and a remainder of 17.
The number 7 becomes the next digit in our result. 
Result so far: 22177.0
If we take 315 away from 332, we end up with 17.
Since there are no more digits in the dividend, we add a zero to the remainder making it 170, and continue the process.

Going ahead to step 7:
The number 45 fits into 170 3 times, leaving a remainder of 35.
Put 3 as the next digit of the answer. 
Result so far: 22177.3
If we take 135 away from 170, we end up with 35.
Since there are no more digits in the dividend, we add a zero to the remainder making it 350, and continue the process.

Moving on to step 8:
45 goes into 350 7 times with a remainder of 35.
Use 7 as the next digit of our solution. 
Result so far: 22177.37
If we take 315 away from 350, we end up with 35.
Since there are no more digits in the dividend, we add a zero to the remainder making it 350, and continue the process.

Going ahead to step 9:
The number 45 fits into 350 7 times, leaving a remainder of 35.
Write down 7 as next digit of the result. 
Result so far: 22177.377
Subtract 315 from 350 to get 35.
Since there are no more digits in the dividend, we add a zero to the remainder making it 350, and continue the process.

In conclusion, the division gives 22177.377 with a balance of 0.0035.