We're dividing 9988118 by 997 
We're looking to find how many times 997 goes into 9988118.

Let's proceed to step 1:
9 divided by 997 is 0 with a remainder of 9.
Write down 0 as next digit of the result. 
Result so far: 0.0
The remainder is 9 after subtracting 0 from 9.
Include the next digit (9) from the dividend after 9, then repeat: 99 / 997

On to step 2:
The number 997 fits into 99 0 times, leaving a remainder of 99.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we take 0 away from 99, we end up with 99.
Grab the next digit (8) from the dividend, add it to 99, then carry on: 998 / 997

Let's proceed to step 3:
The number 997 fits into 998 1 times, leaving a remainder of 1.
Write down 1 as next digit of the result. 
Result so far: 1.0
Subtract 997 from 998 to get 1.
Include the next digit (8) from the dividend after 1, then repeat: 18 / 997

Moving on to step 4:
18 divided by 997 is 0 with a remainder of 18.
The next digit of our result is 0. 
Result so far: 10.0
Deduct 0 from 18 and we're left with 18.
Take the next digit (1) from the dividend and append it to 18, then repeat: 181 / 997

Advancing to step 5:
181 divided by 997 is 0 with a remainder of 181.
The number 0 becomes the next digit in our result. 
Result so far: 100.0
If we subtract 0 from 181, we get 181.
Grab the next digit (1) from the dividend, add it to 181, then carry on: 1811 / 997

Step 6:
997 can be fit into 1811 1 times, resulting in a remainder of 814.
Write down 1 as next digit of the result. 
Result so far: 1001.0
If we subtract 997 from 1811, we get 814.
Take the next digit (8) from the dividend and append it to 814, then repeat: 8148 / 997

Going ahead to step 7:
The number 997 fits into 8148 8 times, leaving a remainder of 172.
Write down 8 as next digit of the result. 
Result so far: 10018.0
The remainder is 172 after subtracting 7976 from 8148.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1720, and continue the process.

Step 8:
The number 997 fits into 1720 1 times, leaving a remainder of 723.
Record the quotient 1 as the next digit in the result. 
Result so far: 10018.1
If we subtract 997 from 1720, we get 723.
Since there are no more digits in the dividend, we add a zero to the remainder making it 7230, and continue the process.

Let's proceed to step 9:
997 can be fit into 7230 7 times, resulting in a remainder of 251.
Write down 7 as next digit of the result. 
Result so far: 10018.17
If we subtract 6979 from 7230, we get 251.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2510, and continue the process.

Going ahead to step 10:
2510 divided by 997 is 2 with a remainder of 516.
Write down 2 as next digit of the result. 
Result so far: 10018.172
If we subtract 1994 from 2510, we get 516.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5160, and continue the process.

Moving on to step 11:
997 goes into 5160 5 times with a remainder of 175.
The number 5 becomes the next digit in our result. 
Result so far: 10018.1725
Subtract 4985 from 5160 to get 175.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1750, and continue the process.

Advancing to step 12:
The number 997 fits into 1750 1 times, leaving a remainder of 753.
Use 1 as the next digit of our solution. 
Result so far: 10018.17251
Subtracting 997 from 1750 leaves us with 753.
Since there are no more digits in the dividend, we add a zero to the remainder making it 7530, and continue the process.

Let's proceed to step 13:
997 can be fit into 7530 7 times, resulting in a remainder of 551.
Put 7 as the next digit of the answer. 
Result so far: 10018.172517
The remainder is 551 after subtracting 6979 from 7530.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5510, and continue the process.

Step 14:
When dividing 5510 by 997, we get 5 with a remainder of 525.
Record the quotient 5 as the next digit in the result. 
Result so far: 10018.1725175
If we take 4985 away from 5510, we end up with 525.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5250, and continue the process.

Advancing to step 15:
The number 997 fits into 5250 5 times, leaving a remainder of 265.
Record the quotient 5 as the next digit in the result. 
Result so far: 10018.17251755
The remainder is 265 after subtracting 4985 from 5250.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2650, and continue the process.

Our division results in 10018.17251755 with a remaining 2.65e-07.