We divide 398321 by 45
We want to divide 398321 by 45.

Let's proceed to step 1:
45 can be fit into 3 0 times, resulting in a remainder of 3.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtracting 0 from 3 leaves us with 3.
Append the next digit (9) from the dividend to 3 and continue with: 39 / 45

On 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.
Take the next digit (8) from the dividend and append it to 39, then repeat: 398 / 45

Let's proceed to step 3:
If we divide 398 by 45, we get 8 and a remainder of 38.
Record the quotient 8 as the next digit in the result. 
Result so far: 8.0
Subtract 360 from 398 to get 38.
Take the next digit (3) from the dividend and append it to 38, then repeat: 383 / 45

Advancing to step 4:
45 goes into 383 8 times with a remainder of 23.
Record the quotient 8 as the next digit in the result. 
Result so far: 88.0
Deduct 360 from 383 and we're left with 23.
Grab the next digit (2) from the dividend, add it to 23, then carry on: 232 / 45

Going ahead to step 5:
The number 45 fits into 232 5 times, leaving a remainder of 7.
The next digit of our result is 5. 
Result so far: 885.0
The remainder is 7 after subtracting 225 from 232.
Take the next digit (1) from the dividend and append it to 7, then repeat: 71 / 45

Going ahead to step 6:
When dividing 71 by 45, we get 1 with a remainder of 26.
The number 1 becomes the next digit in our result. 
Result so far: 8851.0
If we take 45 away from 71, we end up with 26.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

Advancing to step 7:
When dividing 260 by 45, we get 5 with a remainder of 35.
The number 5 becomes the next digit in our result. 
Result so far: 8851.5
Subtracting 225 from 260 leaves us 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.

Let's proceed to step 8:
45 goes into 350 7 times with a remainder of 35.
Write down 7 as next digit of the result. 
Result so far: 8851.57
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.

Moving on to step 9:
The number 45 fits into 350 7 times, leaving a remainder of 35.
The number 7 becomes the next digit in our result. 
Result so far: 8851.577
The remainder is 35 after subtracting 315 from 350.
Since there are no more digits in the dividend, we add a zero to the remainder making it 350, and continue the process.

The final result is 8851.577 with a remainder of 0.0035.