Let's divide 40406382 by 798
Let's see how many times 798 fits into 40406382.

Going ahead to step 1:
The number 798 fits into 4 0 times, leaving a remainder of 4.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtract 0 from 4 to get 4.
Include the next digit (0) from the dividend after 4, then repeat: 40 / 798

Going ahead to step 2:
The number 798 fits into 40 0 times, leaving a remainder of 40.
The next digit of our result is 0. 
Result so far: 0.0
Subtracting 0 from 40 leaves us with 40.
Append the next digit (4) from the dividend to 40 and continue with: 404 / 798

Going ahead to step 3:
The number 798 fits into 404 0 times, leaving a remainder of 404.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtracting 0 from 404 leaves us with 404.
Fetch the next digit (0) from the dividend, attach it to 404 and continue: 4040 / 798

Step 4:
The number 798 fits into 4040 5 times, leaving a remainder of 50.
Record the quotient 5 as the next digit in the result. 
Result so far: 5.0
If we subtract 3990 from 4040, we get 50.
Take the next digit (6) from the dividend and append it to 50, then repeat: 506 / 798

Going ahead to step 5:
When dividing 506 by 798, we get 0 with a remainder of 506.
Write down 0 as next digit of the result. 
Result so far: 50.0
If we subtract 0 from 506, we get 506.
Include the next digit (3) from the dividend after 506, then repeat: 5063 / 798

Advancing to step 6:
If we divide 5063 by 798, we get 6 and a remainder of 275.
Record the quotient 6 as the next digit in the result. 
Result so far: 506.0
If we take 4788 away from 5063, we end up with 275.
Bring next digit (8) of the dividend behind the 275 and repeat the process: 2758 / 798

Let's proceed to step 7:
798 goes into 2758 3 times with a remainder of 364.
Put 3 as the next digit of the answer. 
Result so far: 5063.0
If we take 2394 away from 2758, we end up with 364.
Bring next digit (2) of the dividend behind the 364 and repeat the process: 3642 / 798

Let's proceed to step 8:
798 can be fit into 3642 4 times, resulting in a remainder of 450.
Put 4 as the next digit of the answer. 
Result so far: 50634.0
If we subtract 3192 from 3642, we get 450.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4500, and continue the process.

Advancing to step 9:
798 can be fit into 4500 5 times, resulting in a remainder of 510.
Write down 5 as next digit of the result. 
Result so far: 50634.5
Deduct 3990 from 4500 and we're left with 510.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5100, and continue the process.

Let's proceed to step 10:
798 can be fit into 5100 6 times, resulting in a remainder of 312.
The next digit of our result is 6. 
Result so far: 50634.56
Subtracting 4788 from 5100 leaves us with 312.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3120, and continue the process.

On to step 11:
798 can be fit into 3120 3 times, resulting in a remainder of 726.
Put 3 as the next digit of the answer. 
Result so far: 50634.563
If we take 2394 away from 3120, we end up with 726.
Since there are no more digits in the dividend, we add a zero to the remainder making it 7260, and continue the process.

Let's proceed to step 12:
When dividing 7260 by 798, we get 9 with a remainder of 78.
Write down 9 as next digit of the result. 
Result so far: 50634.5639
The remainder is 78 after subtracting 7182 from 7260.
Since there are no more digits in the dividend, we add a zero to the remainder making it 780, and continue the process.

Advancing to step 13:
780 divided by 798 is 0 with a remainder of 780.
Record the quotient 0 as the next digit in the result. 
Result so far: 50634.5639
Subtracting 0 from 780 leaves us with 780.
Since there are no more digits in the dividend, we add a zero to the remainder making it 7800, and continue the process.

Moving on to step 14:
The number 798 fits into 7800 9 times, leaving a remainder of 618.
Write down 9 as next digit of the result. 
Result so far: 50634.563909
The remainder is 618 after subtracting 7182 from 7800.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6180, and continue the process.

Going ahead to step 15:
If we divide 6180 by 798, we get 7 and a remainder of 594.
Use 7 as the next digit of our solution. 
Result so far: 50634.5639097
If we subtract 5586 from 6180, we get 594.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5940, and continue the process.

Advancing to step 16:
If we divide 5940 by 798, we get 7 and a remainder of 354.
Write down 7 as next digit of the result. 
Result so far: 50634.56390977
The remainder is 354 after subtracting 5586 from 5940.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3540, and continue the process.

After the division, we end up with 50634.56390977 and a remainder of 3.54e-07.