We divide 316342 by 2
Let's see how many times 2 fits into 316342.

Moving on to step 1:
When dividing 3 by 2, we get 1 with a remainder of 1.
Write down 1 as next digit of the result. 
Result so far: 1.0
Deduct 2 from 3 and we're left with 1.
Bring next digit (1) of the dividend behind the 1 and repeat the process: 11 / 2

On to step 2:
2 can be fit into 11 5 times, resulting in a remainder of 1.
Record the quotient 5 as the next digit in the result. 
Result so far: 15.0
If we subtract 10 from 11, we get 1.
Include the next digit (6) from the dividend after 1, then repeat: 16 / 2

Moving on to step 3:
When dividing 16 by 2, we get 8 with a remainder of 0.
Put 8 as the next digit of the answer. 
Result so far: 158.0
Deduct 16 from 16 and we're left with 0.
Append the next digit (3) from the dividend to 0 and continue with: 3 / 2

On to step 4:
The number 2 fits into 3 1 times, leaving a remainder of 1.
Use 1 as the next digit of our solution. 
Result so far: 1581.0
Subtract 2 from 3 to get 1.
Append the next digit (4) from the dividend to 1 and continue with: 14 / 2

Going ahead to step 5:
14 divided by 2 is 7 with a remainder of 0.
Put 7 as the next digit of the answer. 
Result so far: 15817.0
The remainder is 0 after subtracting 14 from 14.
Take the next digit (2) from the dividend and append it to 0, then repeat: 2 / 2

On to step 6:
2 goes into 2 1 times with a remainder of 0.
The next digit of our result is 1. 
Result so far: 158171.0
If we take 2 away from 2, we end up with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Advancing to step 7:
0 divided by 2 is 0 with a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 158171.0
If we subtract 0 from 0, we get 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Going ahead to step 8:
2 can be fit into 0 0 times, resulting in a remainder of 0.
The next digit of our result is 0. 
Result so far: 158171.0
Subtract 0 from 0 to get 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

After the division, we end up with 158171.0 and a remainder of 0.0.