We're dividing 6400739 by 791 
We want to divide 6400739 by 791.

Moving on to step 1:
When dividing 6 by 791, we get 0 with a remainder of 6.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtract 0 from 6 to get 6.
Grab the next digit (4) from the dividend, add it to 6, then carry on: 64 / 791

Going ahead to step 2:
64 divided by 791 is 0 with a remainder of 64.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we subtract 0 from 64, we get 64.
Bring next digit (0) of the dividend behind the 64 and repeat the process: 640 / 791

Going ahead to step 3:
If we divide 640 by 791, we get 0 and a remainder of 640.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtracting 0 from 640 leaves us with 640.
Grab the next digit (0) from the dividend, add it to 640, then carry on: 6400 / 791

Let's proceed to step 4:
6400 divided by 791 is 8 with a remainder of 72.
Write down 8 as next digit of the result. 
Result so far: 8.0
Subtracting 6328 from 6400 leaves us with 72.
Bring next digit (7) of the dividend behind the 72 and repeat the process: 727 / 791

Step 5:
791 goes into 727 0 times with a remainder of 727.
Put 0 as the next digit of the answer. 
Result so far: 80.0
Subtract 0 from 727 to get 727.
Fetch the next digit (3) from the dividend, attach it to 727 and continue: 7273 / 791

On to step 6:
When dividing 7273 by 791, we get 9 with a remainder of 154.
Write down 9 as next digit of the result. 
Result so far: 809.0
Deduct 7119 from 7273 and we're left with 154.
Grab the next digit (9) from the dividend, add it to 154, then carry on: 1549 / 791

Moving on to step 7:
The number 791 fits into 1549 1 times, leaving a remainder of 758.
Put 1 as the next digit of the answer. 
Result so far: 8091.0
Subtracting 791 from 1549 leaves us with 758.
Since there are no more digits in the dividend, we add a zero to the remainder making it 7580, and continue the process.

On to step 8:
The number 791 fits into 7580 9 times, leaving a remainder of 461.
Record the quotient 9 as the next digit in the result. 
Result so far: 8091.9
The remainder is 461 after subtracting 7119 from 7580.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4610, and continue the process.

On to step 9:
791 can be fit into 4610 5 times, resulting in a remainder of 655.
Put 5 as the next digit of the answer. 
Result so far: 8091.95
The remainder is 655 after subtracting 3955 from 4610.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6550, and continue the process.

Advancing to step 10:
When dividing 6550 by 791, we get 8 with a remainder of 222.
Use 8 as the next digit of our solution. 
Result so far: 8091.958
If we take 6328 away from 6550, we end up with 222.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2220, and continue the process.

Moving on to step 11:
If we divide 2220 by 791, we get 2 and a remainder of 638.
Put 2 as the next digit of the answer. 
Result so far: 8091.9582
Deduct 1582 from 2220 and we're left with 638.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6380, and continue the process.

Going ahead to step 12:
791 can be fit into 6380 8 times, resulting in a remainder of 52.
Write down 8 as next digit of the result. 
Result so far: 8091.95828
Deduct 6328 from 6380 and we're left with 52.
Since there are no more digits in the dividend, we add a zero to the remainder making it 520, and continue the process.

Going ahead to step 13:
If we divide 520 by 791, we get 0 and a remainder of 520.
The next digit of our result is 0. 
Result so far: 8091.95828
Subtracting 0 from 520 leaves us with 520.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5200, and continue the process.

Step 14:
791 goes into 5200 6 times with a remainder of 454.
The next digit of our result is 6. 
Result so far: 8091.9582806
Subtracting 4746 from 5200 leaves us with 454.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4540, and continue the process.

Advancing to step 15:
When dividing 4540 by 791, we get 5 with a remainder of 585.
Write down 5 as next digit of the result. 
Result so far: 8091.95828065
If we subtract 3955 from 4540, we get 585.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5850, and continue the process.

The final result is 8091.95828065 with a remainder of 5.85e-07.