796846 ÷ 45 
We want to figure out the number of times 796846 can be divided by 45.

On to step 1:
7 divided by 45 is 0 with a remainder of 7.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtract 0 from 7 to get 7.
Take the next digit (9) from the dividend and append it to 7, then repeat: 79 / 45

Going ahead to step 2:
The number 45 fits into 79 1 times, leaving a remainder of 34.
Put 1 as the next digit of the answer. 
Result so far: 1.0
If we subtract 45 from 79, we get 34.
Bring next digit (6) of the dividend behind the 34 and repeat the process: 346 / 45

Let's proceed to step 3:
346 divided by 45 is 7 with a remainder of 31.
Put 7 as the next digit of the answer. 
Result so far: 17.0
If we take 315 away from 346, we end up with 31.
Include the next digit (8) from the dividend after 31, then repeat: 318 / 45

Let's proceed to step 4:
318 divided by 45 is 7 with a remainder of 3.
Put 7 as the next digit of the answer. 
Result so far: 177.0
If we take 315 away from 318, we end up with 3.
Fetch the next digit (4) from the dividend, attach it to 3 and continue: 34 / 45

Moving on to step 5:
When dividing 34 by 45, we get 0 with a remainder of 34.
The number 0 becomes the next digit in our result. 
Result so far: 1770.0
Subtracting 0 from 34 leaves us with 34.
Bring next digit (6) of the dividend behind the 34 and repeat the process: 346 / 45

On to step 6:
If we divide 346 by 45, we get 7 and a remainder of 31.
The next digit of our result is 7. 
Result so far: 17707.0
The remainder is 31 after subtracting 315 from 346.
Since there are no more digits in the dividend, we add a zero to the remainder making it 310, and continue the process.

Moving on to step 7:
The number 45 fits into 310 6 times, leaving a remainder of 40.
The next digit of our result is 6. 
Result so far: 17707.6
Subtracting 270 from 310 leaves us with 40.
Since there are no more digits in the dividend, we add a zero to the remainder making it 400, and continue the process.

On to step 8:
The number 45 fits into 400 8 times, leaving a remainder of 40.
Write down 8 as next digit of the result. 
Result so far: 17707.68
If we subtract 360 from 400, we get 40.
Since there are no more digits in the dividend, we add a zero to the remainder making it 400, and continue the process.

Step 9:
45 goes into 400 8 times with a remainder of 40.
The next digit of our result is 8. 
Result so far: 17707.688
Subtract 360 from 400 to get 40.
Since there are no more digits in the dividend, we add a zero to the remainder making it 400, and continue the process.

The final result is 17707.688 with a remainder of 0.004.