We're dividing 8170790 by 394 
We want to divide 8170790 by 394.

Step 1:
394 goes into 8 0 times with a remainder of 8.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we take 0 away from 8, we end up with 8.
Fetch the next digit (1) from the dividend, attach it to 8 and continue: 81 / 394

Going ahead to step 2:
When dividing 81 by 394, we get 0 with a remainder of 81.
Use 0 as the next digit of our solution. 
Result so far: 0.0
The remainder is 81 after subtracting 0 from 81.
Fetch the next digit (7) from the dividend, attach it to 81 and continue: 817 / 394

On to step 3:
If we divide 817 by 394, we get 2 and a remainder of 29.
Record the quotient 2 as the next digit in the result. 
Result so far: 2.0
If we take 788 away from 817, we end up with 29.
Take the next digit (0) from the dividend and append it to 29, then repeat: 290 / 394

Going ahead to step 4:
When dividing 290 by 394, we get 0 with a remainder of 290.
Record the quotient 0 as the next digit in the result. 
Result so far: 20.0
The remainder is 290 after subtracting 0 from 290.
Append the next digit (7) from the dividend to 290 and continue with: 2907 / 394

On to step 5:
394 goes into 2907 7 times with a remainder of 149.
Put 7 as the next digit of the answer. 
Result so far: 207.0
If we take 2758 away from 2907, we end up with 149.
Append the next digit (9) from the dividend to 149 and continue with: 1499 / 394

Going ahead to step 6:
When dividing 1499 by 394, we get 3 with a remainder of 317.
Record the quotient 3 as the next digit in the result. 
Result so far: 2073.0
If we take 1182 away from 1499, we end up with 317.
Take the next digit (0) from the dividend and append it to 317, then repeat: 3170 / 394

Advancing to step 7:
394 can be fit into 3170 8 times, resulting in a remainder of 18.
The next digit of our result is 8. 
Result so far: 20738.0
The remainder is 18 after subtracting 3152 from 3170.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

Step 8:
When dividing 180 by 394, we get 0 with a remainder of 180.
Use 0 as the next digit of our solution. 
Result so far: 20738.0
Subtracting 0 from 180 leaves us with 180.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1800, and continue the process.

Let's proceed to step 9:
When dividing 1800 by 394, we get 4 with a remainder of 224.
Record the quotient 4 as the next digit in the result. 
Result so far: 20738.04
If we take 1576 away from 1800, we end up with 224.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2240, and continue the process.

Moving on to step 10:
If we divide 2240 by 394, we get 5 and a remainder of 270.
The next digit of our result is 5. 
Result so far: 20738.045
Subtract 1970 from 2240 to get 270.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2700, and continue the process.

Step 11:
2700 divided by 394 is 6 with a remainder of 336.
Use 6 as the next digit of our solution. 
Result so far: 20738.0456
If we subtract 2364 from 2700, we get 336.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3360, and continue the process.

Going ahead to step 12:
394 goes into 3360 8 times with a remainder of 208.
The next digit of our result is 8. 
Result so far: 20738.04568
If we subtract 3152 from 3360, we get 208.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2080, and continue the process.

On to step 13:
394 can be fit into 2080 5 times, resulting in a remainder of 110.
The next digit of our result is 5. 
Result so far: 20738.045685
If we subtract 1970 from 2080, we get 110.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1100, and continue the process.

Going ahead to step 14:
394 goes into 1100 2 times with a remainder of 312.
Record the quotient 2 as the next digit in the result. 
Result so far: 20738.0456852
Subtract 788 from 1100 to get 312.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3120, and continue the process.

Going ahead to step 15:
If we divide 3120 by 394, we get 7 and a remainder of 362.
Record the quotient 7 as the next digit in the result. 
Result so far: 20738.04568527
If we subtract 2758 from 3120, we get 362.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3620, and continue the process.

In conclusion, the division gives 20738.04568527 with a balance of 3.62e-07.