We're dividing 640042 by 45 
We want to divide 640042 by 45.

Let's proceed to step 1:
6 divided by 45 is 0 with a remainder of 6.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we take 0 away from 6, we end up with 6.
Append the next digit (4) from the dividend to 6 and continue with: 64 / 45

Let's proceed to step 2:
When dividing 64 by 45, we get 1 with a remainder of 19.
Put 1 as the next digit of the answer. 
Result so far: 1.0
Subtracting 45 from 64 leaves us with 19.
Fetch the next digit (0) from the dividend, attach it to 19 and continue: 190 / 45

Let's proceed to step 3:
If we divide 190 by 45, we get 4 and a remainder of 10.
The next digit of our result is 4. 
Result so far: 14.0
Subtracting 180 from 190 leaves us with 10.
Fetch the next digit (0) from the dividend, attach it to 10 and continue: 100 / 45

Advancing to step 4:
45 can be fit into 100 2 times, resulting in a remainder of 10.
Put 2 as the next digit of the answer. 
Result so far: 142.0
Subtract 90 from 100 to get 10.
Grab the next digit (4) from the dividend, add it to 10, then carry on: 104 / 45

Moving on to step 5:
104 divided by 45 is 2 with a remainder of 14.
The next digit of our result is 2. 
Result so far: 1422.0
Deduct 90 from 104 and we're left with 14.
Bring next digit (2) of the dividend behind the 14 and repeat the process: 142 / 45

Moving on to step 6:
45 can be fit into 142 3 times, resulting in a remainder of 7.
The number 3 becomes the next digit in our result. 
Result so far: 14223.0
Subtract 135 from 142 to get 7.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

On to step 7:
When dividing 70 by 45, we get 1 with a remainder of 25.
Put 1 as the next digit of the answer. 
Result so far: 14223.1
Deduct 45 from 70 and we're left with 25.
Since there are no more digits in the dividend, we add a zero to the remainder making it 250, and continue the process.

Advancing to step 8:
The number 45 fits into 250 5 times, leaving a remainder of 25.
Write down 5 as next digit of the result. 
Result so far: 14223.15
Subtracting 225 from 250 leaves us with 25.
Since there are no more digits in the dividend, we add a zero to the remainder making it 250, and continue the process.

Going ahead to step 9:
250 divided by 45 is 5 with a remainder of 25.
Write down 5 as next digit of the result. 
Result so far: 14223.155
If we subtract 225 from 250, we get 25.
Since there are no more digits in the dividend, we add a zero to the remainder making it 250, and continue the process.

After the division, we end up with 14223.155 and a remainder of 0.0025.