Let's divide 158564 by 5
We want to divide 158564 by 5.

Let's proceed to step 1:
The number 5 fits into 1 0 times, leaving a remainder of 1.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we subtract 0 from 1, we get 1.
Include the next digit (5) from the dividend after 1, then repeat: 15 / 5

Going ahead to step 2:
5 can be fit into 15 3 times, resulting in a remainder of 0.
Put 3 as the next digit of the answer. 
Result so far: 3.0
If we take 15 away from 15, we end up with 0.
Append the next digit (8) from the dividend to 0 and continue with: 8 / 5

Let's proceed to step 3:
5 goes into 8 1 times with a remainder of 3.
Record the quotient 1 as the next digit in the result. 
Result so far: 31.0
If we take 5 away from 8, we end up with 3.
Append the next digit (5) from the dividend to 3 and continue with: 35 / 5

Going ahead to step 4:
5 can be fit into 35 7 times, resulting in a remainder of 0.
The number 7 becomes the next digit in our result. 
Result so far: 317.0
Subtract 35 from 35 to get 0.
Grab the next digit (6) from the dividend, add it to 0, then carry on: 6 / 5

Going ahead to step 5:
5 can be fit into 6 1 times, resulting in a remainder of 1.
Put 1 as the next digit of the answer. 
Result so far: 3171.0
If we subtract 5 from 6, we get 1.
Grab the next digit (4) from the dividend, add it to 1, then carry on: 14 / 5

Going ahead to step 6:
5 can be fit into 14 2 times, resulting in a remainder of 4.
Write down 2 as next digit of the result. 
Result so far: 31712.0
Subtract 10 from 14 to get 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Moving on to step 7:
The number 5 fits into 40 8 times, leaving a remainder of 0.
Put 8 as the next digit of the answer. 
Result so far: 31712.8
Subtract 40 from 40 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.

On to step 8:
5 goes into 0 0 times with a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 31712.8
If we take 0 away from 0, 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.

Step 9:
When dividing 0 by 5, we get 0 with a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 31712.8
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.

The final result is 31712.8 with a remainder of 0.0.