Let's divide 799760 by 40
We want to divide 799760 by 40.

Moving on to step 1:
When dividing 7 by 40, we get 0 with a remainder of 7.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtracting 0 from 7 leaves us with 7.
Grab the next digit (9) from the dividend, add it to 7, then carry on: 79 / 40

Moving on to step 2:
79 divided by 40 is 1 with a remainder of 39.
Record the quotient 1 as the next digit in the result. 
Result so far: 1.0
The remainder is 39 after subtracting 40 from 79.
Bring next digit (9) of the dividend behind the 39 and repeat the process: 399 / 40

Let's proceed to step 3:
If we divide 399 by 40, we get 9 and a remainder of 39.
Record the quotient 9 as the next digit in the result. 
Result so far: 19.0
Subtracting 360 from 399 leaves us with 39.
Include the next digit (7) from the dividend after 39, then repeat: 397 / 40

Moving on to step 4:
40 can be fit into 397 9 times, resulting in a remainder of 37.
Put 9 as the next digit of the answer. 
Result so far: 199.0
Subtract 360 from 397 to get 37.
Include the next digit (6) from the dividend after 37, then repeat: 376 / 40

Let's proceed to step 5:
The number 40 fits into 376 9 times, leaving a remainder of 16.
Write down 9 as next digit of the result. 
Result so far: 1999.0
If we subtract 360 from 376, we get 16.
Take the next digit (0) from the dividend and append it to 16, then repeat: 160 / 40

Advancing to step 6:
When dividing 160 by 40, we get 4 with a remainder of 0.
The next digit of our result is 4. 
Result so far: 19994.0
Subtract 160 from 160 to get 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Moving on to step 7:
0 divided by 40 is 0 with a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 19994.0
Subtracting 0 from 0 leaves us with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

On to step 8:
40 goes into 0 0 times with a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 19994.0
Subtract 0 from 0 to get 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

The quotient of the division is 19994.0, and the remainder is 0.0.