We're dividing 40170189 by 996 
We want to figure out the number of times 40170189 can be divided by 996.

Moving on to step 1:
The number 996 fits into 4 0 times, leaving a remainder of 4.
Write down 0 as next digit of the result. 
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 / 996

Advancing to step 2:
The number 996 fits into 40 0 times, leaving a remainder of 40.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtract 0 from 40 to get 40.
Fetch the next digit (1) from the dividend, attach it to 40 and continue: 401 / 996

Going ahead to step 3:
The number 996 fits into 401 0 times, leaving 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.
Grab the next digit (7) from the dividend, add it to 401, then carry on: 4017 / 996

Let's proceed to step 4:
When dividing 4017 by 996, we get 4 with a remainder of 33.
The number 4 becomes the next digit in our result. 
Result so far: 4.0
Deduct 3984 from 4017 and we're left with 33.
Grab the next digit (0) from the dividend, add it to 33, then carry on: 330 / 996

On to step 5:
330 divided by 996 is 0 with a remainder of 330.
Write down 0 as next digit of the result. 
Result so far: 40.0
Deduct 0 from 330 and we're left with 330.
Append the next digit (1) from the dividend to 330 and continue with: 3301 / 996

Moving on to step 6:
If we divide 3301 by 996, we get 3 and a remainder of 313.
Record the quotient 3 as the next digit in the result. 
Result so far: 403.0
Subtract 2988 from 3301 to get 313.
Take the next digit (8) from the dividend and append it to 313, then repeat: 3138 / 996

Step 7:
3138 divided by 996 is 3 with a remainder of 150.
Put 3 as the next digit of the answer. 
Result so far: 4033.0
The remainder is 150 after subtracting 2988 from 3138.
Append the next digit (9) from the dividend to 150 and continue with: 1509 / 996

Moving on to step 8:
If we divide 1509 by 996, we get 1 and a remainder of 513.
The number 1 becomes the next digit in our result. 
Result so far: 40331.0
If we take 996 away from 1509, we end up with 513.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5130, and continue the process.

Advancing to step 9:
5130 divided by 996 is 5 with a remainder of 150.
Record the quotient 5 as the next digit in the result. 
Result so far: 40331.5
The remainder is 150 after subtracting 4980 from 5130.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1500, and continue the process.

Step 10:
996 can be fit into 1500 1 times, resulting in a remainder of 504.
Record the quotient 1 as the next digit in the result. 
Result so far: 40331.51
Subtracting 996 from 1500 leaves us with 504.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5040, and continue the process.

Step 11:
When dividing 5040 by 996, we get 5 with a remainder of 60.
Write down 5 as next digit of the result. 
Result so far: 40331.515
If we subtract 4980 from 5040, we get 60.
Since there are no more digits in the dividend, we add a zero to the remainder making it 600, and continue the process.

On to step 12:
If we divide 600 by 996, we get 0 and a remainder of 600.
The next digit of our result is 0. 
Result so far: 40331.515
The remainder is 600 after subtracting 0 from 600.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6000, and continue the process.

On to step 13:
The number 996 fits into 6000 6 times, leaving a remainder of 24.
Write down 6 as next digit of the result. 
Result so far: 40331.51506
Subtract 5976 from 6000 to get 24.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

Going ahead to step 14:
When dividing 240 by 996, we get 0 with a remainder of 240.
The next digit of our result is 0. 
Result so far: 40331.51506
Subtract 0 from 240 to get 240.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2400, and continue the process.

Let's proceed to step 15:
If we divide 2400 by 996, we get 2 and a remainder of 408.
Put 2 as the next digit of the answer. 
Result so far: 40331.5150602
Subtract 1992 from 2400 to get 408.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4080, and continue the process.

On to step 16:
The number 996 fits into 4080 4 times, leaving a remainder of 96.
Use 4 as the next digit of our solution. 
Result so far: 40331.51506024
If we subtract 3984 from 4080, we get 96.
Since there are no more digits in the dividend, we add a zero to the remainder making it 960, and continue the process.

The final outcome is 40331.51506024, with a leftover of 9.6e-08.