Let's divide 90581 by 40
We're looking to find how many times 40 goes into 90581.

Step 1:
40 goes into 9 0 times with a remainder of 9.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Subtracting 0 from 9 leaves us with 9.
Bring next digit (0) of the dividend behind the 9 and repeat the process: 90 / 40

Let's proceed to step 2:
40 goes into 90 2 times with a remainder of 10.
Use 2 as the next digit of our solution. 
Result so far: 2.0
If we subtract 80 from 90, we get 10.
Fetch the next digit (5) from the dividend, attach it to 10 and continue: 105 / 40

Moving on to step 3:
105 divided by 40 is 2 with a remainder of 25.
The number 2 becomes the next digit in our result. 
Result so far: 22.0
Subtract 80 from 105 to get 25.
Include the next digit (8) from the dividend after 25, then repeat: 258 / 40

Let's proceed to step 4:
If we divide 258 by 40, we get 6 and a remainder of 18.
The next digit of our result is 6. 
Result so far: 226.0
The remainder is 18 after subtracting 240 from 258.
Take the next digit (1) from the dividend and append it to 18, then repeat: 181 / 40

Advancing to step 5:
If we divide 181 by 40, we get 4 and a remainder of 21.
Record the quotient 4 as the next digit in the result. 
Result so far: 2264.0
Deduct 160 from 181 and we're left with 21.
Since there are no more digits in the dividend, we add a zero to the remainder making it 210, and continue the process.

Going ahead to step 6:
40 goes into 210 5 times with a remainder of 10.
Write down 5 as next digit of the result. 
Result so far: 2264.5
Subtract 200 from 210 to get 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Going ahead to step 7:
The number 40 fits into 100 2 times, leaving a remainder of 20.
Record the quotient 2 as the next digit in the result. 
Result so far: 2264.52
Deduct 80 from 100 and we're left 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.

Advancing to step 8:
The number 40 fits into 200 5 times, leaving a remainder of 0.
Put 5 as the next digit of the answer. 
Result so far: 2264.525
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.

Step 9:
The number 40 fits into 0 0 times, leaving a remainder of 0.
The next digit of our result is 0. 
Result so far: 2264.525
If we subtract 0 from 0, we get 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Step 10:
The number 40 fits into 0 0 times, leaving a remainder of 0.
The next digit of our result is 0. 
Result so far: 2264.525
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.

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