We're dividing 255585 by 40 
Let's see how many times 40 fits into 255585.

Let's proceed to step 1:
40 goes into 2 0 times with a remainder of 2.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we take 0 away from 2, we end up with 2.
Fetch the next digit (5) from the dividend, attach it to 2 and continue: 25 / 40

Moving on to step 2:
The number 40 fits into 25 0 times, leaving a remainder of 25.
Write down 0 as next digit of the result. 
Result so far: 0.0
The remainder is 25 after subtracting 0 from 25.
Bring next digit (5) of the dividend behind the 25 and repeat the process: 255 / 40

Going ahead to step 3:
If we divide 255 by 40, we get 6 and a remainder of 15.
Record the quotient 6 as the next digit in the result. 
Result so far: 6.0
Deduct 240 from 255 and we're left with 15.
Fetch the next digit (5) from the dividend, attach it to 15 and continue: 155 / 40

Let's proceed to step 4:
When dividing 155 by 40, we get 3 with a remainder of 35.
Put 3 as the next digit of the answer. 
Result so far: 63.0
If we take 120 away from 155, we end up with 35.
Append the next digit (8) from the dividend to 35 and continue with: 358 / 40

Moving on to step 5:
40 goes into 358 8 times with a remainder of 38.
Use 8 as the next digit of our solution. 
Result so far: 638.0
Subtract 320 from 358 to get 38.
Include the next digit (5) from the dividend after 38, then repeat: 385 / 40

Moving on to step 6:
If we divide 385 by 40, we get 9 and a remainder of 25.
Write down 9 as next digit of the result. 
Result so far: 6389.0
If we subtract 360 from 385, 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.

Going ahead to step 7:
40 goes into 250 6 times with a remainder of 10.
Put 6 as the next digit of the answer. 
Result so far: 6389.6
If we take 240 away from 250, we end up with 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

On to step 8:
40 goes into 100 2 times with a remainder of 20.
Put 2 as the next digit of the answer. 
Result so far: 6389.62
If we take 80 away from 100, 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.

Going ahead to step 9:
40 goes into 200 5 times with a remainder of 0.
Put 5 as the next digit of the answer. 
Result so far: 6389.625
If we take 200 away from 200, we end up with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Going ahead to step 10:
40 goes into 0 0 times with a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 6389.625
Deduct 0 from 0 and we're left with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

On to step 11:
When dividing 0 by 40, we get 0 with a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 6389.625
Subtracting 0 from 0 leaves us with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

The final outcome is 6389.625, with a leftover of 0.0.