We're dividing 642361 by 45 
We want to figure out the number of times 642361 can be divided by 45.

Moving on to step 1:
The number 45 fits into 6 0 times, leaving a remainder of 6.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we subtract 0 from 6, we get 6.
Append the next digit (4) from the dividend to 6 and continue with: 64 / 45

Moving on to step 2:
The number 45 fits into 64 1 times, leaving a remainder of 19.
The next digit of our result is 1. 
Result so far: 1.0
If we subtract 45 from 64, we get 19.
Grab the next digit (2) from the dividend, add it to 19, then carry on: 192 / 45

On to step 3:
The number 45 fits into 192 4 times, leaving a remainder of 12.
Use 4 as the next digit of our solution. 
Result so far: 14.0
Deduct 180 from 192 and we're left with 12.
Fetch the next digit (3) from the dividend, attach it to 12 and continue: 123 / 45

On to step 4:
123 divided by 45 is 2 with a remainder of 33.
Record the quotient 2 as the next digit in the result. 
Result so far: 142.0
Subtracting 90 from 123 leaves us with 33.
Grab the next digit (6) from the dividend, add it to 33, then carry on: 336 / 45

Going ahead to step 5:
45 goes into 336 7 times with a remainder of 21.
The number 7 becomes the next digit in our result. 
Result so far: 1427.0
If we subtract 315 from 336, we get 21.
Bring next digit (1) of the dividend behind the 21 and repeat the process: 211 / 45

Let's proceed to step 6:
211 divided by 45 is 4 with a remainder of 31.
Put 4 as the next digit of the answer. 
Result so far: 14274.0
If we take 180 away from 211, we end up with 31.
Since there are no more digits in the dividend, we add a zero to the remainder making it 310, and continue the process.

On to step 7:
45 goes into 310 6 times with a remainder of 40.
Write down 6 as next digit of the result. 
Result so far: 14274.6
Subtracting 270 from 310 leaves us with 40.
Since there are no more digits in the dividend, we add a zero to the remainder making it 400, and continue the process.

Moving on to step 8:
The number 45 fits into 400 8 times, leaving a remainder of 40.
Put 8 as the next digit of the answer. 
Result so far: 14274.68
Subtract 360 from 400 to get 40.
Since there are no more digits in the dividend, we add a zero to the remainder making it 400, and continue the process.

Going ahead to step 9:
45 goes into 400 8 times with a remainder of 40.
The number 8 becomes the next digit in our result. 
Result so far: 14274.688
The remainder is 40 after subtracting 360 from 400.
Since there are no more digits in the dividend, we add a zero to the remainder making it 400, and continue the process.

The final outcome is 14274.688, with a leftover of 0.004.