We're dividing 792598 by 40 
Our goal is to divide 792598 by 40.

Advancing to step 1:
7 divided by 40 is 0 with a remainder of 7.
The next digit of our result is 0. 
Result so far: 0.0
Subtracting 0 from 7 leaves us with 7.
Bring next digit (9) of the dividend behind the 7 and repeat the process: 79 / 40

Let's proceed to step 2:
40 goes into 79 1 times with a remainder of 39.
The next digit of our result is 1. 
Result so far: 1.0
Deduct 40 from 79 and we're left with 39.
Take the next digit (2) from the dividend and append it to 39, then repeat: 392 / 40

Moving on to step 3:
392 divided by 40 is 9 with a remainder of 32.
The number 9 becomes the next digit in our result. 
Result so far: 19.0
Subtracting 360 from 392 leaves us with 32.
Take the next digit (5) from the dividend and append it to 32, then repeat: 325 / 40

Step 4:
325 divided by 40 is 8 with a remainder of 5.
Put 8 as the next digit of the answer. 
Result so far: 198.0
Subtract 320 from 325 to get 5.
Take the next digit (9) from the dividend and append it to 5, then repeat: 59 / 40

Let's proceed to step 5:
The number 40 fits into 59 1 times, leaving a remainder of 19.
Record the quotient 1 as the next digit in the result. 
Result so far: 1981.0
The remainder is 19 after subtracting 40 from 59.
Fetch the next digit (8) from the dividend, attach it to 19 and continue: 198 / 40

Advancing to step 6:
40 goes into 198 4 times with a remainder of 38.
The number 4 becomes the next digit in our result. 
Result so far: 19814.0
Subtract 160 from 198 to get 38.
Since there are no more digits in the dividend, we add a zero to the remainder making it 380, and continue the process.

Step 7:
When dividing 380 by 40, we get 9 with a remainder of 20.
Write down 9 as next digit of the result. 
Result so far: 19814.9
Subtracting 360 from 380 leaves us with 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Going ahead to step 8:
When dividing 200 by 40, we get 5 with a remainder of 0.
Put 5 as the next digit of the answer. 
Result so far: 19814.95
The remainder is 0 after subtracting 200 from 200.
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 9:
If we divide 0 by 40, we get 0 and a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 19814.95
If we take 0 away from 0, we end up 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 10:
40 goes into 0 0 times with a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 19814.95
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 19814.95, and the remainder is 0.0.