We're dividing 40195202 by 398 
We want to divide 40195202 by 398.

Going ahead to step 1:
When dividing 4 by 398, we get 0 with a remainder of 4.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Deduct 0 from 4 and we're left with 4.
Fetch the next digit (0) from the dividend, attach it to 4 and continue: 40 / 398

Advancing to step 2:
398 goes into 40 0 times with a remainder of 40.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtract 0 from 40 to get 40.
Append the next digit (1) from the dividend to 40 and continue with: 401 / 398

On to step 3:
If we divide 401 by 398, we get 1 and a remainder of 3.
Use 1 as the next digit of our solution. 
Result so far: 1.0
The remainder is 3 after subtracting 398 from 401.
Include the next digit (9) from the dividend after 3, then repeat: 39 / 398

Advancing to step 4:
If we divide 39 by 398, we get 0 and a remainder of 39.
Record the quotient 0 as the next digit in the result. 
Result so far: 10.0
If we subtract 0 from 39, we get 39.
Include the next digit (5) from the dividend after 39, then repeat: 395 / 398

Advancing to step 5:
398 can be fit into 395 0 times, resulting in a remainder of 395.
The number 0 becomes the next digit in our result. 
Result so far: 100.0
If we subtract 0 from 395, we get 395.
Append the next digit (2) from the dividend to 395 and continue with: 3952 / 398

Advancing to step 6:
398 goes into 3952 9 times with a remainder of 370.
Record the quotient 9 as the next digit in the result. 
Result so far: 1009.0
Deduct 3582 from 3952 and we're left with 370.
Fetch the next digit (0) from the dividend, attach it to 370 and continue: 3700 / 398

Advancing to step 7:
The number 398 fits into 3700 9 times, leaving a remainder of 118.
Use 9 as the next digit of our solution. 
Result so far: 10099.0
The remainder is 118 after subtracting 3582 from 3700.
Take the next digit (2) from the dividend and append it to 118, then repeat: 1182 / 398

Advancing to step 8:
398 can be fit into 1182 2 times, resulting in a remainder of 386.
Put 2 as the next digit of the answer. 
Result so far: 100992.0
If we take 796 away from 1182, we end up with 386.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3860, and continue the process.

Moving on to step 9:
398 goes into 3860 9 times with a remainder of 278.
The next digit of our result is 9. 
Result so far: 100992.9
If we subtract 3582 from 3860, we get 278.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2780, and continue the process.

Let's proceed to step 10:
2780 divided by 398 is 6 with a remainder of 392.
Record the quotient 6 as the next digit in the result. 
Result so far: 100992.96
If we take 2388 away from 2780, we end up with 392.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3920, and continue the process.

Going ahead to step 11:
3920 divided by 398 is 9 with a remainder of 338.
Record the quotient 9 as the next digit in the result. 
Result so far: 100992.969
Deduct 3582 from 3920 and we're left with 338.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3380, and continue the process.

On to step 12:
The number 398 fits into 3380 8 times, leaving a remainder of 196.
Write down 8 as next digit of the result. 
Result so far: 100992.9698
Subtracting 3184 from 3380 leaves us with 196.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1960, and continue the process.

Advancing to step 13:
The number 398 fits into 1960 4 times, leaving a remainder of 368.
Use 4 as the next digit of our solution. 
Result so far: 100992.96984
If we take 1592 away from 1960, we end up with 368.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3680, and continue the process.

On to step 14:
When dividing 3680 by 398, we get 9 with a remainder of 98.
Put 9 as the next digit of the answer. 
Result so far: 100992.969849
Subtract 3582 from 3680 to get 98.
Since there are no more digits in the dividend, we add a zero to the remainder making it 980, and continue the process.

Step 15:
980 divided by 398 is 2 with a remainder of 184.
The next digit of our result is 2. 
Result so far: 100992.9698492
Subtract 796 from 980 to get 184.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1840, and continue the process.

Step 16:
The number 398 fits into 1840 4 times, leaving a remainder of 248.
Put 4 as the next digit of the answer. 
Result so far: 100992.96984924
The remainder is 248 after subtracting 1592 from 1840.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2480, and continue the process.

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