We're dividing 3958 by 98 
Our goal is to divide 3958 by 98.

Moving on to step 1:
If we divide 3 by 98, we get 0 and a remainder of 3.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtracting 0 from 3 leaves us with 3.
Grab the next digit (9) from the dividend, add it to 3, then carry on: 39 / 98

Advancing to step 2:
98 can be fit into 39 0 times, resulting in a remainder of 39.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we take 0 away from 39, we end up with 39.
Bring next digit (5) of the dividend behind the 39 and repeat the process: 395 / 98

On to step 3:
395 divided by 98 is 4 with a remainder of 3.
Put 4 as the next digit of the answer. 
Result so far: 4.0
Subtract 392 from 395 to get 3.
Bring next digit (8) of the dividend behind the 3 and repeat the process: 38 / 98

Going ahead to step 4:
38 divided by 98 is 0 with a remainder of 38.
Put 0 as the next digit of the answer. 
Result so far: 40.0
Subtracting 0 from 38 leaves us with 38.
Since there are no more digits in the dividend, we add a zero to the remainder making it 380, and continue the process.

Going ahead to step 5:
When dividing 380 by 98, we get 3 with a remainder of 86.
Write down 3 as next digit of the result. 
Result so far: 40.3
Deduct 294 from 380 and we're left with 86.
Since there are no more digits in the dividend, we add a zero to the remainder making it 860, and continue the process.

Going ahead to step 6:
If we divide 860 by 98, we get 8 and a remainder of 76.
Write down 8 as next digit of the result. 
Result so far: 40.38
Subtracting 784 from 860 leaves us with 76.
Since there are no more digits in the dividend, we add a zero to the remainder making it 760, and continue the process.

Step 7:
When dividing 760 by 98, we get 7 with a remainder of 74.
Write down 7 as next digit of the result. 
Result so far: 40.387
Subtract 686 from 760 to get 74.
Since there are no more digits in the dividend, we add a zero to the remainder making it 740, and continue the process.

Going ahead to step 8:
98 can be fit into 740 7 times, resulting in a remainder of 54.
Use 7 as the next digit of our solution. 
Result so far: 40.3877
The remainder is 54 after subtracting 686 from 740.
Since there are no more digits in the dividend, we add a zero to the remainder making it 540, and continue the process.

After the division, we end up with 40.3877 and a remainder of 0.00054.