Let's divide 789966 by 5
Let's see how many times 5 fits into 789966.

Advancing to step 1:
If we divide 7 by 5, we get 1 and a remainder of 2.
Use 1 as the next digit of our solution. 
Result so far: 1.0
Subtract 5 from 7 to get 2.
Take the next digit (8) from the dividend and append it to 2, then repeat: 28 / 5

Moving on to step 2:
5 goes into 28 5 times with a remainder of 3.
Write down 5 as next digit of the result. 
Result so far: 15.0
The remainder is 3 after subtracting 25 from 28.
Grab the next digit (9) from the dividend, add it to 3, then carry on: 39 / 5

Let's proceed to step 3:
The number 5 fits into 39 7 times, leaving a remainder of 4.
Use 7 as the next digit of our solution. 
Result so far: 157.0
Subtract 35 from 39 to get 4.
Bring next digit (9) of the dividend behind the 4 and repeat the process: 49 / 5

Moving on to step 4:
49 divided by 5 is 9 with a remainder of 4.
The number 9 becomes the next digit in our result. 
Result so far: 1579.0
Subtracting 45 from 49 leaves us with 4.
Grab the next digit (6) from the dividend, add it to 4, then carry on: 46 / 5

Moving on to step 5:
When dividing 46 by 5, we get 9 with a remainder of 1.
Put 9 as the next digit of the answer. 
Result so far: 15799.0
Deduct 45 from 46 and we're left with 1.
Include the next digit (6) from the dividend after 1, then repeat: 16 / 5

On to step 6:
When dividing 16 by 5, we get 3 with a remainder of 1.
Use 3 as the next digit of our solution. 
Result so far: 157993.0
Subtracting 15 from 16 leaves us with 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Moving on to step 7:
The number 5 fits into 10 2 times, leaving a remainder of 0.
Record the quotient 2 as the next digit in the result. 
Result so far: 157993.2
Deduct 10 from 10 and we're left 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.

Moving on to step 8:
5 goes into 0 0 times with a remainder of 0.
The next digit of our result is 0. 
Result so far: 157993.2
Subtracting 0 from 0 leaves us 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.

Moving on to step 9:
5 can be fit into 0 0 times, resulting in a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 157993.2
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.

Our division results in 157993.2 with a remaining 0.0.