We divide 40568575 by 798
We want to figure out the number of times 40568575 can be divided by 798.

Advancing to step 1:
When dividing 4 by 798, we get 0 with a remainder of 4.
The next digit of our result is 0. 
Result so far: 0.0
Subtract 0 from 4 to get 4.
Take the next digit (0) from the dividend and append it to 4, then repeat: 40 / 798

Let's proceed to step 2:
When dividing 40 by 798, we get 0 with a remainder of 40.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Deduct 0 from 40 and we're left with 40.
Grab the next digit (5) from the dividend, add it to 40, then carry on: 405 / 798

Let's proceed to step 3:
405 divided by 798 is 0 with a remainder of 405.
The next digit of our result is 0. 
Result so far: 0.0
If we take 0 away from 405, we end up with 405.
Grab the next digit (6) from the dividend, add it to 405, then carry on: 4056 / 798

On to step 4:
798 goes into 4056 5 times with a remainder of 66.
The number 5 becomes the next digit in our result. 
Result so far: 5.0
If we subtract 3990 from 4056, we get 66.
Include the next digit (8) from the dividend after 66, then repeat: 668 / 798

Going ahead to step 5:
668 divided by 798 is 0 with a remainder of 668.
Put 0 as the next digit of the answer. 
Result so far: 50.0
If we subtract 0 from 668, we get 668.
Include the next digit (5) from the dividend after 668, then repeat: 6685 / 798

Going ahead to step 6:
798 can be fit into 6685 8 times, resulting in a remainder of 301.
The number 8 becomes the next digit in our result. 
Result so far: 508.0
Subtracting 6384 from 6685 leaves us with 301.
Take the next digit (7) from the dividend and append it to 301, then repeat: 3017 / 798

Going ahead to step 7:
798 goes into 3017 3 times with a remainder of 623.
The number 3 becomes the next digit in our result. 
Result so far: 5083.0
If we take 2394 away from 3017, we end up with 623.
Take the next digit (5) from the dividend and append it to 623, then repeat: 6235 / 798

Advancing to step 8:
798 goes into 6235 7 times with a remainder of 649.
Put 7 as the next digit of the answer. 
Result so far: 50837.0
The remainder is 649 after subtracting 5586 from 6235.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6490, and continue the process.

Going ahead to step 9:
The number 798 fits into 6490 8 times, leaving a remainder of 106.
Use 8 as the next digit of our solution. 
Result so far: 50837.8
Subtracting 6384 from 6490 leaves us with 106.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1060, and continue the process.

Step 10:
When dividing 1060 by 798, we get 1 with a remainder of 262.
Write down 1 as next digit of the result. 
Result so far: 50837.81
Deduct 798 from 1060 and we're left with 262.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2620, and continue the process.

Moving on to step 11:
The number 798 fits into 2620 3 times, leaving a remainder of 226.
Write down 3 as next digit of the result. 
Result so far: 50837.813
Deduct 2394 from 2620 and we're left with 226.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2260, and continue the process.

Let's proceed to step 12:
798 can be fit into 2260 2 times, resulting in a remainder of 664.
The number 2 becomes the next digit in our result. 
Result so far: 50837.8132
The remainder is 664 after subtracting 1596 from 2260.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6640, and continue the process.

Moving on to step 13:
If we divide 6640 by 798, we get 8 and a remainder of 256.
The next digit of our result is 8. 
Result so far: 50837.81328
If we subtract 6384 from 6640, we get 256.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2560, and continue the process.

On to step 14:
798 can be fit into 2560 3 times, resulting in a remainder of 166.
Write down 3 as next digit of the result. 
Result so far: 50837.813283
Deduct 2394 from 2560 and we're left with 166.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1660, and continue the process.

Going ahead to step 15:
When dividing 1660 by 798, we get 2 with a remainder of 64.
Put 2 as the next digit of the answer. 
Result so far: 50837.8132832
The remainder is 64 after subtracting 1596 from 1660.
Since there are no more digits in the dividend, we add a zero to the remainder making it 640, and continue the process.

Step 16:
If we divide 640 by 798, we get 0 and a remainder of 640.
Write down 0 as next digit of the result. 
Result so far: 50837.8132832
If we take 0 away from 640, we end up with 640.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6400, and continue the process.

The final outcome is 50837.8132832, with a leftover of 6.4e-07.