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

Advancing to step 1:
158 goes into 6 0 times with a remainder of 6.
The next digit of our result is 0. 
Result so far: 0.0
Subtract 0 from 6 to get 6.
Take the next digit (7) from the dividend and append it to 6, then repeat: 67 / 158

Let's proceed to step 2:
67 divided by 158 is 0 with a remainder of 67.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we subtract 0 from 67, we get 67.
Bring next digit (4) of the dividend behind the 67 and repeat the process: 674 / 158

Step 3:
The number 158 fits into 674 4 times, leaving a remainder of 42.
The number 4 becomes the next digit in our result. 
Result so far: 4.0
Deduct 632 from 674 and we're left with 42.
Grab the next digit (7) from the dividend, add it to 42, then carry on: 427 / 158

Step 4:
The number 158 fits into 427 2 times, leaving a remainder of 111.
Put 2 as the next digit of the answer. 
Result so far: 42.0
Subtracting 316 from 427 leaves us with 111.
Bring next digit (1) of the dividend behind the 111 and repeat the process: 1111 / 158

Going ahead to step 5:
158 goes into 1111 7 times with a remainder of 5.
Write down 7 as next digit of the result. 
Result so far: 427.0
Subtract 1106 from 1111 to get 5.
Take the next digit (7) from the dividend and append it to 5, then repeat: 57 / 158

Advancing to step 6:
If we divide 57 by 158, we get 0 and a remainder of 57.
The number 0 becomes the next digit in our result. 
Result so far: 4270.0
Subtract 0 from 57 to get 57.
Since there are no more digits in the dividend, we add a zero to the remainder making it 570, and continue the process.

Step 7:
570 divided by 158 is 3 with a remainder of 96.
Use 3 as the next digit of our solution. 
Result so far: 4270.3
If we subtract 474 from 570, 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.

Advancing to step 8:
The number 158 fits into 960 6 times, leaving a remainder of 12.
Put 6 as the next digit of the answer. 
Result so far: 4270.36
Subtracting 948 from 960 leaves us with 12.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

On to step 9:
120 divided by 158 is 0 with a remainder of 120.
Use 0 as the next digit of our solution. 
Result so far: 4270.36
If we take 0 away from 120, we end up with 120.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1200, and continue the process.

Moving on to step 10:
1200 divided by 158 is 7 with a remainder of 94.
Put 7 as the next digit of the answer. 
Result so far: 4270.3607
Subtracting 1106 from 1200 leaves us with 94.
Since there are no more digits in the dividend, we add a zero to the remainder making it 940, and continue the process.

Step 11:
940 divided by 158 is 5 with a remainder of 150.
Use 5 as the next digit of our solution. 
Result so far: 4270.36075
Subtracting 790 from 940 leaves us with 150.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1500, and continue the process.

Step 12:
158 can be fit into 1500 9 times, resulting in a remainder of 78.
The next digit of our result is 9. 
Result so far: 4270.360759
Subtract 1422 from 1500 to get 78.
Since there are no more digits in the dividend, we add a zero to the remainder making it 780, and continue the process.

Step 13:
780 divided by 158 is 4 with a remainder of 148.
Use 4 as the next digit of our solution. 
Result so far: 4270.3607594
If we take 632 away from 780, we end up with 148.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1480, and continue the process.

Advancing to step 14:
1480 divided by 158 is 9 with a remainder of 58.
Use 9 as the next digit of our solution. 
Result so far: 4270.36075949
If we take 1422 away from 1480, we end up with 58.
Since there are no more digits in the dividend, we add a zero to the remainder making it 580, and continue the process.

The final outcome is 4270.36075949, with a leftover of 5.8e-08.