40157519 divided by 799 
We're looking to find how many times 799 goes into 40157519.

Step 1:
The number 799 fits into 4 0 times, leaving a remainder of 4.
The next digit of our result is 0. 
Result so far: 0.0
Subtracting 0 from 4 leaves us with 4.
Include the next digit (0) from the dividend after 4, then repeat: 40 / 799

Step 2:
The number 799 fits into 40 0 times, leaving a remainder of 40.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
The remainder is 40 after subtracting 0 from 40.
Grab the next digit (1) from the dividend, add it to 40, then carry on: 401 / 799

Going ahead to step 3:
401 divided by 799 is 0 with a remainder of 401.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we subtract 0 from 401, we get 401.
Include the next digit (5) from the dividend after 401, then repeat: 4015 / 799

Step 4:
799 can be fit into 4015 5 times, resulting in a remainder of 20.
Use 5 as the next digit of our solution. 
Result so far: 5.0
If we take 3995 away from 4015, we end up with 20.
Include the next digit (7) from the dividend after 20, then repeat: 207 / 799

Going ahead to step 5:
207 divided by 799 is 0 with a remainder of 207.
Write down 0 as next digit of the result. 
Result so far: 50.0
Subtract 0 from 207 to get 207.
Take the next digit (5) from the dividend and append it to 207, then repeat: 2075 / 799

Let's proceed to step 6:
If we divide 2075 by 799, we get 2 and a remainder of 477.
The number 2 becomes the next digit in our result. 
Result so far: 502.0
Deduct 1598 from 2075 and we're left with 477.
Fetch the next digit (1) from the dividend, attach it to 477 and continue: 4771 / 799

Moving on to step 7:
If we divide 4771 by 799, we get 5 and a remainder of 776.
Put 5 as the next digit of the answer. 
Result so far: 5025.0
Subtract 3995 from 4771 to get 776.
Fetch the next digit (9) from the dividend, attach it to 776 and continue: 7769 / 799

Advancing to step 8:
799 can be fit into 7769 9 times, resulting in a remainder of 578.
Write down 9 as next digit of the result. 
Result so far: 50259.0
Subtracting 7191 from 7769 leaves us with 578.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5780, and continue the process.

Going ahead to step 9:
799 goes into 5780 7 times with a remainder of 187.
The next digit of our result is 7. 
Result so far: 50259.7
The remainder is 187 after subtracting 5593 from 5780.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1870, and continue the process.

On to step 10:
The number 799 fits into 1870 2 times, leaving a remainder of 272.
Put 2 as the next digit of the answer. 
Result so far: 50259.72
Deduct 1598 from 1870 and we're left with 272.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2720, and continue the process.

Step 11:
799 goes into 2720 3 times with a remainder of 323.
Put 3 as the next digit of the answer. 
Result so far: 50259.723
The remainder is 323 after subtracting 2397 from 2720.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3230, and continue the process.

Going ahead to step 12:
If we divide 3230 by 799, we get 4 and a remainder of 34.
Put 4 as the next digit of the answer. 
Result so far: 50259.7234
Deduct 3196 from 3230 and we're left with 34.
Since there are no more digits in the dividend, we add a zero to the remainder making it 340, and continue the process.

Moving on to step 13:
799 goes into 340 0 times with a remainder of 340.
Write down 0 as next digit of the result. 
Result so far: 50259.7234
Subtract 0 from 340 to get 340.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3400, and continue the process.

Advancing to step 14:
When dividing 3400 by 799, we get 4 with a remainder of 204.
Use 4 as the next digit of our solution. 
Result so far: 50259.723404
If we subtract 3196 from 3400, we get 204.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2040, and continue the process.

Step 15:
The number 799 fits into 2040 2 times, leaving a remainder of 442.
Put 2 as the next digit of the answer. 
Result so far: 50259.7234042
Deduct 1598 from 2040 and we're left with 442.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4420, and continue the process.

Let's proceed to step 16:
4420 divided by 799 is 5 with a remainder of 425.
Use 5 as the next digit of our solution. 
Result so far: 50259.72340425
Subtracting 3995 from 4420 leaves us with 425.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4250, and continue the process.

The final outcome is 50259.72340425, with a leftover of 4.25e-07.