We divide 40400668 by 799
We want to figure out the number of times 40400668 can be divided by 799.

Advancing to step 1:
When dividing 4 by 799, we get 0 with a remainder of 4.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we subtract 0 from 4, we get 4.
Bring next digit (0) of the dividend behind the 4 and repeat the process: 40 / 799

Moving on to step 2:
799 can be fit into 40 0 times, resulting in 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.
Bring next digit (4) of the dividend behind the 40 and repeat the process: 404 / 799

Let's proceed to step 3:
When dividing 404 by 799, we get 0 with a remainder of 404.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Subtract 0 from 404 to get 404.
Bring next digit (0) of the dividend behind the 404 and repeat the process: 4040 / 799

Moving on to step 4:
4040 divided by 799 is 5 with a remainder of 45.
Write down 5 as next digit of the result. 
Result so far: 5.0
If we take 3995 away from 4040, we end up with 45.
Fetch the next digit (0) from the dividend, attach it to 45 and continue: 450 / 799

Advancing to step 5:
799 can be fit into 450 0 times, resulting in a remainder of 450.
The number 0 becomes the next digit in our result. 
Result so far: 50.0
If we subtract 0 from 450, we get 450.
Bring next digit (6) of the dividend behind the 450 and repeat the process: 4506 / 799

On to step 6:
The number 799 fits into 4506 5 times, leaving a remainder of 511.
Record the quotient 5 as the next digit in the result. 
Result so far: 505.0
If we take 3995 away from 4506, we end up with 511.
Append the next digit (6) from the dividend to 511 and continue with: 5116 / 799

Moving on to step 7:
If we divide 5116 by 799, we get 6 and a remainder of 322.
Write down 6 as next digit of the result. 
Result so far: 5056.0
Subtracting 4794 from 5116 leaves us with 322.
Take the next digit (8) from the dividend and append it to 322, then repeat: 3228 / 799

Going ahead to step 8:
If we divide 3228 by 799, we get 4 and a remainder of 32.
Use 4 as the next digit of our solution. 
Result so far: 50564.0
Subtract 3196 from 3228 to get 32.
Since there are no more digits in the dividend, we add a zero to the remainder making it 320, and continue the process.

Let's proceed to step 9:
When dividing 320 by 799, we get 0 with a remainder of 320.
Use 0 as the next digit of our solution. 
Result so far: 50564.0
Deduct 0 from 320 and we're left with 320.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3200, and continue the process.

Moving on to step 10:
799 can be fit into 3200 4 times, resulting in a remainder of 4.
Use 4 as the next digit of our solution. 
Result so far: 50564.04
If we subtract 3196 from 3200, we get 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Moving on to step 11:
If we divide 40 by 799, we get 0 and a remainder of 40.
The number 0 becomes the next digit in our result. 
Result so far: 50564.04
If we subtract 0 from 40, we get 40.
Since there are no more digits in the dividend, we add a zero to the remainder making it 400, and continue the process.

Let's proceed to step 12:
799 can be fit into 400 0 times, resulting in a remainder of 400.
The next digit of our result is 0. 
Result so far: 50564.04
If we take 0 away from 400, we end up with 400.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4000, and continue the process.

In conclusion, the division gives 50564.04 with a balance of 0.004.