40102363 ÷ 798 
Our goal is to divide 40102363 by 798.

Advancing to step 1:
If we divide 4 by 798, we get 0 and a remainder of 4.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtract 0 from 4 to get 4.
Append the next digit (0) from the dividend to 4 and continue with: 40 / 798

Going ahead to step 2:
40 divided by 798 is 0 with 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.
Fetch the next digit (1) from the dividend, attach it to 40 and continue: 401 / 798

Going ahead to step 3:
401 divided by 798 is 0 with a remainder of 401.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we subtract 0 from 401, we get 401.
Fetch the next digit (0) from the dividend, attach it to 401 and continue: 4010 / 798

Advancing to step 4:
The number 798 fits into 4010 5 times, leaving a remainder of 20.
The next digit of our result is 5. 
Result so far: 5.0
Subtracting 3990 from 4010 leaves us with 20.
Append the next digit (2) from the dividend to 20 and continue with: 202 / 798

On to step 5:
The number 798 fits into 202 0 times, leaving a remainder of 202.
Write down 0 as next digit of the result. 
Result so far: 50.0
If we take 0 away from 202, we end up with 202.
Include the next digit (3) from the dividend after 202, then repeat: 2023 / 798

On to step 6:
When dividing 2023 by 798, we get 2 with a remainder of 427.
Record the quotient 2 as the next digit in the result. 
Result so far: 502.0
Deduct 1596 from 2023 and we're left with 427.
Grab the next digit (6) from the dividend, add it to 427, then carry on: 4276 / 798

Advancing to step 7:
If we divide 4276 by 798, we get 5 and a remainder of 286.
Record the quotient 5 as the next digit in the result. 
Result so far: 5025.0
Subtracting 3990 from 4276 leaves us with 286.
Bring next digit (3) of the dividend behind the 286 and repeat the process: 2863 / 798

Going ahead to step 8:
If we divide 2863 by 798, we get 3 and a remainder of 469.
Record the quotient 3 as the next digit in the result. 
Result so far: 50253.0
If we take 2394 away from 2863, we end up with 469.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4690, and continue the process.

Going ahead to step 9:
The number 798 fits into 4690 5 times, leaving a remainder of 700.
Write down 5 as next digit of the result. 
Result so far: 50253.5
Subtracting 3990 from 4690 leaves us with 700.
Since there are no more digits in the dividend, we add a zero to the remainder making it 7000, and continue the process.

On to step 10:
7000 divided by 798 is 8 with a remainder of 616.
Write down 8 as next digit of the result. 
Result so far: 50253.58
Subtracting 6384 from 7000 leaves us with 616.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6160, and continue the process.

Step 11:
When dividing 6160 by 798, we get 7 with a remainder of 574.
Record the quotient 7 as the next digit in the result. 
Result so far: 50253.587
Subtract 5586 from 6160 to get 574.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5740, and continue the process.

Advancing to step 12:
5740 divided by 798 is 7 with a remainder of 154.
Record the quotient 7 as the next digit in the result. 
Result so far: 50253.5877
If we subtract 5586 from 5740, we get 154.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1540, and continue the process.

After the division, we end up with 50253.5877 and a remainder of 0.00154.