We're dividing 40249227 by 799 
Let's see how many times 799 fits into 40249227.

Moving on to step 1:
When dividing 4 by 799, we get 0 with 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.
Fetch the next digit (0) from the dividend, attach it to 4 and continue: 40 / 799

Advancing to step 2:
799 goes into 40 0 times with a remainder of 40.
The next digit of our result is 0. 
Result so far: 0.0
Subtract 0 from 40 to get 40.
Grab the next digit (2) from the dividend, add it to 40, then carry on: 402 / 799

Let's proceed to step 3:
799 can be fit into 402 0 times, resulting in a remainder of 402.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
The remainder is 402 after subtracting 0 from 402.
Take the next digit (4) from the dividend and append it to 402, then repeat: 4024 / 799

Going ahead to step 4:
4024 divided by 799 is 5 with a remainder of 29.
The next digit of our result is 5. 
Result so far: 5.0
The remainder is 29 after subtracting 3995 from 4024.
Include the next digit (9) from the dividend after 29, then repeat: 299 / 799

Advancing to step 5:
299 divided by 799 is 0 with a remainder of 299.
Write down 0 as next digit of the result. 
Result so far: 50.0
If we take 0 away from 299, we end up with 299.
Take the next digit (2) from the dividend and append it to 299, then repeat: 2992 / 799

Going ahead to step 6:
The number 799 fits into 2992 3 times, leaving a remainder of 595.
Put 3 as the next digit of the answer. 
Result so far: 503.0
Deduct 2397 from 2992 and we're left with 595.
Bring next digit (2) of the dividend behind the 595 and repeat the process: 5952 / 799

Going ahead to step 7:
The number 799 fits into 5952 7 times, leaving a remainder of 359.
Record the quotient 7 as the next digit in the result. 
Result so far: 5037.0
Deduct 5593 from 5952 and we're left with 359.
Bring next digit (7) of the dividend behind the 359 and repeat the process: 3597 / 799

Advancing to step 8:
3597 divided by 799 is 4 with a remainder of 401.
The number 4 becomes the next digit in our result. 
Result so far: 50374.0
Deduct 3196 from 3597 and we're left with 401.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4010, and continue the process.

Let's proceed to step 9:
If we divide 4010 by 799, we get 5 and a remainder of 15.
The next digit of our result is 5. 
Result so far: 50374.5
If we take 3995 away from 4010, we end up with 15.
Since there are no more digits in the dividend, we add a zero to the remainder making it 150, and continue the process.

Going ahead to step 10:
The number 799 fits into 150 0 times, leaving a remainder of 150.
Record the quotient 0 as the next digit in the result. 
Result so far: 50374.5
Deduct 0 from 150 and we're left with 150.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1500, and continue the process.

Moving on to step 11:
If we divide 1500 by 799, we get 1 and a remainder of 701.
Put 1 as the next digit of the answer. 
Result so far: 50374.501
Subtracting 799 from 1500 leaves us with 701.
Since there are no more digits in the dividend, we add a zero to the remainder making it 7010, and continue the process.

Moving on to step 12:
799 goes into 7010 8 times with a remainder of 618.
The number 8 becomes the next digit in our result. 
Result so far: 50374.5018
Subtract 6392 from 7010 to get 618.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6180, and continue the process.

Let's proceed to step 13:
When dividing 6180 by 799, we get 7 with a remainder of 587.
Write down 7 as next digit of the result. 
Result so far: 50374.50187
If we take 5593 away from 6180, we end up with 587.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5870, and continue the process.

On to step 14:
The number 799 fits into 5870 7 times, leaving a remainder of 277.
Record the quotient 7 as the next digit in the result. 
Result so far: 50374.501877
If we take 5593 away from 5870, we end up with 277.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2770, and continue the process.

The final outcome is 50374.501877, with a leftover of 2.77e-05.