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

On to step 1:
45 can be fit into 9 0 times, resulting in a remainder of 9.
Use 0 as the next digit of our solution. 
Result so far: 0.0
The remainder is 9 after subtracting 0 from 9.
Append the next digit (0) from the dividend to 9 and continue with: 90 / 45

Step 2:
45 can be fit into 90 2 times, resulting in a remainder of 0.
Write down 2 as next digit of the result. 
Result so far: 2.0
If we take 90 away from 90, we end up with 0.
Take the next digit (4) from the dividend and append it to 0, then repeat: 4 / 45

Going ahead to step 3:
If we divide 4 by 45, we get 0 and a remainder of 4.
Put 0 as the next digit of the answer. 
Result so far: 20.0
Subtracting 0 from 4 leaves us with 4.
Grab the next digit (9) from the dividend, add it to 4, then carry on: 49 / 45

Let's proceed to step 4:
49 divided by 45 is 1 with a remainder of 4.
Write down 1 as next digit of the result. 
Result so far: 201.0
If we subtract 45 from 49, we get 4.
Take the next digit (9) from the dividend and append it to 4, then repeat: 49 / 45

Let's proceed to step 5:
If we divide 49 by 45, we get 1 and a remainder of 4.
Put 1 as the next digit of the answer. 
Result so far: 2011.0
Deduct 45 from 49 and we're left with 4.
Fetch the next digit (7) from the dividend, attach it to 4 and continue: 47 / 45

Step 6:
47 divided by 45 is 1 with a remainder of 2.
Record the quotient 1 as the next digit in the result. 
Result so far: 20111.0
The remainder is 2 after subtracting 45 from 47.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Advancing to step 7:
If we divide 20 by 45, we get 0 and a remainder of 20.
Use 0 as the next digit of our solution. 
Result so far: 20111.0
If we take 0 away from 20, we end up with 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

On to step 8:
The number 45 fits into 200 4 times, leaving a remainder of 20.
The next digit of our result is 4. 
Result so far: 20111.04
If we subtract 180 from 200, we get 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Step 9:
If we divide 200 by 45, we get 4 and a remainder of 20.
Write down 4 as next digit of the result. 
Result so far: 20111.044
If we take 180 away from 200, we end up with 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

The final outcome is 20111.044, with a leftover of 0.002.