We look at the division of 798545 by 39 
Let's see how many times 39 fits into 798545.

Going ahead to step 1:
The number 39 fits into 7 0 times, leaving a remainder of 7.
The next digit of our result is 0. 
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 / 39

Step 2:
If we divide 79 by 39, we get 2 and a remainder of 1.
Use 2 as the next digit of our solution. 
Result so far: 2.0
Deduct 78 from 79 and we're left with 1.
Append the next digit (8) from the dividend to 1 and continue with: 18 / 39

On to step 3:
18 divided by 39 is 0 with a remainder of 18.
The next digit of our result is 0. 
Result so far: 20.0
The remainder is 18 after subtracting 0 from 18.
Take the next digit (5) from the dividend and append it to 18, then repeat: 185 / 39

Moving on to step 4:
39 goes into 185 4 times with a remainder of 29.
The number 4 becomes the next digit in our result. 
Result so far: 204.0
Deduct 156 from 185 and we're left with 29.
Append the next digit (4) from the dividend to 29 and continue with: 294 / 39

On to step 5:
39 goes into 294 7 times with a remainder of 21.
Use 7 as the next digit of our solution. 
Result so far: 2047.0
The remainder is 21 after subtracting 273 from 294.
Bring next digit (5) of the dividend behind the 21 and repeat the process: 215 / 39

Let's proceed to step 6:
39 can be fit into 215 5 times, resulting in a remainder of 20.
The number 5 becomes the next digit in our result. 
Result so far: 20475.0
Subtract 195 from 215 to get 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Going ahead to step 7:
The number 39 fits into 200 5 times, leaving a remainder of 5.
Use 5 as the next digit of our solution. 
Result so far: 20475.5
If we subtract 195 from 200, we get 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Moving on to step 8:
50 divided by 39 is 1 with a remainder of 11.
Record the quotient 1 as the next digit in the result. 
Result so far: 20475.51
If we subtract 39 from 50, we get 11.
Since there are no more digits in the dividend, we add a zero to the remainder making it 110, and continue the process.

On to step 9:
When dividing 110 by 39, we get 2 with a remainder of 32.
Put 2 as the next digit of the answer. 
Result so far: 20475.512
If we subtract 78 from 110, we get 32.
Since there are no more digits in the dividend, we add a zero to the remainder making it 320, and continue the process.

Step 10:
39 goes into 320 8 times with a remainder of 8.
The number 8 becomes the next digit in our result. 
Result so far: 20475.5128
The remainder is 8 after subtracting 312 from 320.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Going ahead to step 11:
When dividing 80 by 39, we get 2 with a remainder of 2.
Write down 2 as next digit of the result. 
Result so far: 20475.51282
Deduct 78 from 80 and we're left with 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Going ahead to step 12:
39 goes into 20 0 times with a remainder of 20.
Write down 0 as next digit of the result. 
Result so far: 20475.51282
The remainder is 20 after subtracting 0 from 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Step 13:
39 goes into 200 5 times with a remainder of 5.
Write down 5 as next digit of the result. 
Result so far: 20475.5128205
If we subtract 195 from 200, we get 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Going ahead to step 14:
39 can be fit into 50 1 times, resulting in a remainder of 11.
The number 1 becomes the next digit in our result. 
Result so far: 20475.51282051
Subtract 39 from 50 to get 11.
Since there are no more digits in the dividend, we add a zero to the remainder making it 110, and continue the process.

In conclusion, the division gives 20475.51282051 with a balance of 1.1e-08.