We look at the division of 40058 by 42 
We're looking to find how many times 42 goes into 40058.

Advancing to step 1:
42 goes into 4 0 times with a remainder of 4.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we take 0 away from 4, we end up with 4.
Append the next digit (0) from the dividend to 4 and continue with: 40 / 42

Moving on to step 2:
40 divided by 42 is 0 with a remainder of 40.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Deduct 0 from 40 and we're left with 40.
Fetch the next digit (0) from the dividend, attach it to 40 and continue: 400 / 42

On to step 3:
400 divided by 42 is 9 with a remainder of 22.
Record the quotient 9 as the next digit in the result. 
Result so far: 9.0
If we take 378 away from 400, we end up with 22.
Bring next digit (5) of the dividend behind the 22 and repeat the process: 225 / 42

Going ahead to step 4:
The number 42 fits into 225 5 times, leaving a remainder of 15.
Use 5 as the next digit of our solution. 
Result so far: 95.0
Subtract 210 from 225 to get 15.
Bring next digit (8) of the dividend behind the 15 and repeat the process: 158 / 42

Going ahead to step 5:
158 divided by 42 is 3 with a remainder of 32.
Write down 3 as next digit of the result. 
Result so far: 953.0
Subtract 126 from 158 to get 32.
Since there are no more digits in the dividend, we add a zero to the remainder making it 320, and continue the process.

Going ahead to step 6:
320 divided by 42 is 7 with a remainder of 26.
The next digit of our result is 7. 
Result so far: 953.7
If we take 294 away from 320, we end up with 26.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

Step 7:
260 divided by 42 is 6 with a remainder of 8.
Record the quotient 6 as the next digit in the result. 
Result so far: 953.76
If we take 252 away from 260, we end up with 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

On to step 8:
When dividing 80 by 42, we get 1 with a remainder of 38.
Write down 1 as next digit of the result. 
Result so far: 953.761
Deduct 42 from 80 and we're left 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.

Advancing to step 9:
If we divide 380 by 42, we get 9 and a remainder of 2.
Write down 9 as next digit of the result. 
Result so far: 953.7619
The remainder is 2 after subtracting 378 from 380.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Advancing to step 10:
The number 42 fits into 20 0 times, leaving a remainder of 20.
The next digit of our result is 0. 
Result so far: 953.7619
If we subtract 0 from 20, we get 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Moving on to step 11:
The number 42 fits into 200 4 times, leaving a remainder of 32.
Write down 4 as next digit of the result. 
Result so far: 953.761904
If we take 168 away from 200, we end up with 32.
Since there are no more digits in the dividend, we add a zero to the remainder making it 320, and continue the process.

Step 12:
When dividing 320 by 42, we get 7 with a remainder of 26.
Put 7 as the next digit of the answer. 
Result so far: 953.7619047
Deduct 294 from 320 and we're left with 26.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

Step 13:
The number 42 fits into 260 6 times, leaving a remainder of 8.
Use 6 as the next digit of our solution. 
Result so far: 953.76190476
Subtract 252 from 260 to get 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

The final result is 953.76190476 with a remainder of 8e-09.