Let's divide 40958 by 22
We're looking to find how many times 22 goes into 40958.

Moving on to step 1:
When dividing 4 by 22, we get 0 with a remainder of 4.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Subtract 0 from 4 to get 4.
Grab the next digit (0) from the dividend, add it to 4, then carry on: 40 / 22

Let's proceed to step 2:
40 divided by 22 is 1 with a remainder of 18.
Use 1 as the next digit of our solution. 
Result so far: 1.0
Deduct 22 from 40 and we're left with 18.
Grab the next digit (9) from the dividend, add it to 18, then carry on: 189 / 22

Let's proceed to step 3:
22 can be fit into 189 8 times, resulting in a remainder of 13.
Record the quotient 8 as the next digit in the result. 
Result so far: 18.0
If we take 176 away from 189, we end up with 13.
Grab the next digit (5) from the dividend, add it to 13, then carry on: 135 / 22

Moving on to step 4:
22 can be fit into 135 6 times, resulting in a remainder of 3.
Put 6 as the next digit of the answer. 
Result so far: 186.0
Subtract 132 from 135 to get 3.
Append the next digit (8) from the dividend to 3 and continue with: 38 / 22

Advancing to step 5:
The number 22 fits into 38 1 times, leaving a remainder of 16.
The next digit of our result is 1. 
Result so far: 1861.0
If we take 22 away from 38, we end up with 16.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

Going ahead to step 6:
If we divide 160 by 22, we get 7 and a remainder of 6.
The number 7 becomes the next digit in our result. 
Result so far: 1861.7
Deduct 154 from 160 and we're left with 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Moving on to step 7:
The number 22 fits into 60 2 times, leaving a remainder of 16.
Put 2 as the next digit of the answer. 
Result so far: 1861.72
Subtract 44 from 60 to get 16.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

On to step 8:
When dividing 160 by 22, we get 7 with a remainder of 6.
The next digit of our result is 7. 
Result so far: 1861.727
Subtracting 154 from 160 leaves us with 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Step 9:
22 goes into 60 2 times with a remainder of 16.
The next digit of our result is 2. 
Result so far: 1861.7272
The remainder is 16 after subtracting 44 from 60.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

Let's proceed to step 10:
22 goes into 160 7 times with a remainder of 6.
Write down 7 as next digit of the result. 
Result so far: 1861.72727
If we subtract 154 from 160, we get 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Step 11:
When dividing 60 by 22, we get 2 with a remainder of 16.
Put 2 as the next digit of the answer. 
Result so far: 1861.727272
The remainder is 16 after subtracting 44 from 60.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

Advancing to step 12:
22 can be fit into 160 7 times, resulting in a remainder of 6.
Put 7 as the next digit of the answer. 
Result so far: 1861.7272727
If we take 154 away from 160, we end up with 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Going ahead to step 13:
If we divide 60 by 22, we get 2 and a remainder of 16.
Put 2 as the next digit of the answer. 
Result so far: 1861.72727272
Subtract 44 from 60 to get 16.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

Our division results in 1861.72727272 with a remaining 1.6e-08.