We're dividing 40260216 by 585 
We want to divide 40260216 by 585.

Let's proceed to step 1:
The number 585 fits into 4 0 times, leaving a remainder of 4.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Deduct 0 from 4 and we're left with 4.
Fetch the next digit (0) from the dividend, attach it to 4 and continue: 40 / 585

Step 2:
When dividing 40 by 585, we get 0 with a remainder of 40.
Write down 0 as next digit of the result. 
Result so far: 0.0
Deduct 0 from 40 and we're left with 40.
Include the next digit (2) from the dividend after 40, then repeat: 402 / 585

Advancing to step 3:
The number 585 fits into 402 0 times, leaving a remainder of 402.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtracting 0 from 402 leaves us with 402.
Bring next digit (6) of the dividend behind the 402 and repeat the process: 4026 / 585

Going ahead to step 4:
When dividing 4026 by 585, we get 6 with a remainder of 516.
Write down 6 as next digit of the result. 
Result so far: 6.0
Deduct 3510 from 4026 and we're left with 516.
Bring next digit (0) of the dividend behind the 516 and repeat the process: 5160 / 585

Advancing to step 5:
The number 585 fits into 5160 8 times, leaving a remainder of 480.
The next digit of our result is 8. 
Result so far: 68.0
Subtract 4680 from 5160 to get 480.
Bring next digit (2) of the dividend behind the 480 and repeat the process: 4802 / 585

Advancing to step 6:
If we divide 4802 by 585, we get 8 and a remainder of 122.
The next digit of our result is 8. 
Result so far: 688.0
Subtracting 4680 from 4802 leaves us with 122.
Take the next digit (1) from the dividend and append it to 122, then repeat: 1221 / 585

On to step 7:
When dividing 1221 by 585, we get 2 with a remainder of 51.
Put 2 as the next digit of the answer. 
Result so far: 6882.0
If we take 1170 away from 1221, we end up with 51.
Bring next digit (6) of the dividend behind the 51 and repeat the process: 516 / 585

Advancing to step 8:
When dividing 516 by 585, we get 0 with a remainder of 516.
Write down 0 as next digit of the result. 
Result so far: 68820.0
If we subtract 0 from 516, we get 516.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5160, and continue the process.

On to step 9:
The number 585 fits into 5160 8 times, leaving a remainder of 480.
Use 8 as the next digit of our solution. 
Result so far: 68820.8
Deduct 4680 from 5160 and we're left with 480.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4800, and continue the process.

Let's proceed to step 10:
585 goes into 4800 8 times with a remainder of 120.
Put 8 as the next digit of the answer. 
Result so far: 68820.88
If we subtract 4680 from 4800, we get 120.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1200, and continue the process.

The final outcome is 68820.88, with a leftover of 0.12.