Let's divide 40079022 by 585
Let's see how many times 585 fits into 40079022.

On to step 1:
4 divided by 585 is 0 with a remainder of 4.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtracting 0 from 4 leaves us with 4.
Grab the next digit (0) from the dividend, add it to 4, then carry on: 40 / 585

Moving on to 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
The remainder is 40 after subtracting 0 from 40.
Take the next digit (0) from the dividend and append it to 40, then repeat: 400 / 585

Going ahead to step 3:
400 divided by 585 is 0 with a remainder of 400.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtract 0 from 400 to get 400.
Include the next digit (7) from the dividend after 400, then repeat: 4007 / 585

Going ahead to step 4:
If we divide 4007 by 585, we get 6 and a remainder of 497.
Record the quotient 6 as the next digit in the result. 
Result so far: 6.0
If we take 3510 away from 4007, we end up with 497.
Bring next digit (9) of the dividend behind the 497 and repeat the process: 4979 / 585

On to step 5:
4979 divided by 585 is 8 with a remainder of 299.
Put 8 as the next digit of the answer. 
Result so far: 68.0
Deduct 4680 from 4979 and we're left with 299.
Append the next digit (0) from the dividend to 299 and continue with: 2990 / 585

Step 6:
2990 divided by 585 is 5 with a remainder of 65.
Put 5 as the next digit of the answer. 
Result so far: 685.0
If we subtract 2925 from 2990, we get 65.
Include the next digit (2) from the dividend after 65, then repeat: 652 / 585

On to step 7:
585 goes into 652 1 times with a remainder of 67.
Use 1 as the next digit of our solution. 
Result so far: 6851.0
If we take 585 away from 652, we end up with 67.
Take the next digit (2) from the dividend and append it to 67, then repeat: 672 / 585

Moving on to step 8:
672 divided by 585 is 1 with a remainder of 87.
The number 1 becomes the next digit in our result. 
Result so far: 68511.0
Subtract 585 from 672 to get 87.
Since there are no more digits in the dividend, we add a zero to the remainder making it 870, and continue the process.

Going ahead to step 9:
The number 585 fits into 870 1 times, leaving a remainder of 285.
The number 1 becomes the next digit in our result. 
Result so far: 68511.1
Subtract 585 from 870 to get 285.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2850, and continue the process.

Advancing to step 10:
585 goes into 2850 4 times with a remainder of 510.
Use 4 as the next digit of our solution. 
Result so far: 68511.14
The remainder is 510 after subtracting 2340 from 2850.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5100, and continue the process.

Moving on to step 11:
585 can be fit into 5100 8 times, resulting in a remainder of 420.
Use 8 as the next digit of our solution. 
Result so far: 68511.148
Subtracting 4680 from 5100 leaves us with 420.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4200, and continue the process.

Advancing to step 12:
The number 585 fits into 4200 7 times, leaving a remainder of 105.
Write down 7 as next digit of the result. 
Result so far: 68511.1487
Subtracting 4095 from 4200 leaves us with 105.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1050, and continue the process.

Let's proceed to step 13:
When dividing 1050 by 585, we get 1 with a remainder of 465.
Put 1 as the next digit of the answer. 
Result so far: 68511.14871
Subtract 585 from 1050 to get 465.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4650, and continue the process.

Advancing to step 14:
585 can be fit into 4650 7 times, resulting in a remainder of 555.
Write down 7 as next digit of the result. 
Result so far: 68511.148717
Subtracting 4095 from 4650 leaves us with 555.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5550, and continue the process.

Moving on to step 15:
If we divide 5550 by 585, we get 9 and a remainder of 285.
Use 9 as the next digit of our solution. 
Result so far: 68511.1487179
Deduct 5265 from 5550 and we're left with 285.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2850, and continue the process.

Advancing to step 16:
585 goes into 2850 4 times with a remainder of 510.
The number 4 becomes the next digit in our result. 
Result so far: 68511.14871794
If we subtract 2340 from 2850, we get 510.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5100, and continue the process.

In conclusion, the division gives 68511.14871794 with a balance of 5.1e-07.