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

Step 1:
When dividing 3 by 58, we get 0 with a remainder of 3.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtract 0 from 3 to get 3.
Grab the next digit (4) from the dividend, add it to 3, then carry on: 34 / 58

On to step 2:
When dividing 34 by 58, we get 0 with a remainder of 34.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we take 0 away from 34, we end up with 34.
Grab the next digit (2) from the dividend, add it to 34, then carry on: 342 / 58

Step 3:
The number 58 fits into 342 5 times, leaving a remainder of 52.
The next digit of our result is 5. 
Result so far: 5.0
The remainder is 52 after subtracting 290 from 342.
Take the next digit (0) from the dividend and append it to 52, then repeat: 520 / 58

Let's proceed to step 4:
520 divided by 58 is 8 with a remainder of 56.
The next digit of our result is 8. 
Result so far: 58.0
If we subtract 464 from 520, we get 56.
Include the next digit (4) from the dividend after 56, then repeat: 564 / 58

On to step 5:
58 can be fit into 564 9 times, resulting in a remainder of 42.
Record the quotient 9 as the next digit in the result. 
Result so far: 589.0
The remainder is 42 after subtracting 522 from 564.
Bring next digit (0) of the dividend behind the 42 and repeat the process: 420 / 58

On to step 6:
The number 58 fits into 420 7 times, leaving a remainder of 14.
Use 7 as the next digit of our solution. 
Result so far: 5897.0
Subtract 406 from 420 to get 14.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

Advancing to step 7:
140 divided by 58 is 2 with a remainder of 24.
Use 2 as the next digit of our solution. 
Result so far: 5897.2
Subtracting 116 from 140 leaves us with 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 8:
58 can be fit into 240 4 times, resulting in a remainder of 8.
Use 4 as the next digit of our solution. 
Result so far: 5897.24
Deduct 232 from 240 and we're left 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.

Going ahead to step 9:
58 can be fit into 80 1 times, resulting in a remainder of 22.
Write down 1 as next digit of the result. 
Result so far: 5897.241
If we take 58 away from 80, we end up with 22.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

On to step 10:
When dividing 220 by 58, we get 3 with a remainder of 46.
The number 3 becomes the next digit in our result. 
Result so far: 5897.2413
Subtract 174 from 220 to get 46.
Since there are no more digits in the dividend, we add a zero to the remainder making it 460, and continue the process.

On to step 11:
58 can be fit into 460 7 times, resulting in a remainder of 54.
Use 7 as the next digit of our solution. 
Result so far: 5897.24137
Subtracting 406 from 460 leaves us with 54.
Since there are no more digits in the dividend, we add a zero to the remainder making it 540, and continue the process.

Advancing to step 12:
When dividing 540 by 58, we get 9 with a remainder of 18.
The number 9 becomes the next digit in our result. 
Result so far: 5897.241379
If we subtract 522 from 540, we get 18.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

On to step 13:
58 can be fit into 180 3 times, resulting in a remainder of 6.
The next digit of our result is 3. 
Result so far: 5897.2413793
Subtracting 174 from 180 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.

Advancing to step 14:
When dividing 60 by 58, we get 1 with a remainder of 2.
Write down 1 as next digit of the result. 
Result so far: 5897.24137931
If we subtract 58 from 60, we get 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Our division results in 5897.24137931 with a remaining 2e-09.