Let's divide 796021 by 31
Let's see how many times 31 fits into 796021.

Step 1:
31 can be fit into 7 0 times, resulting in a remainder of 7.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we take 0 away from 7, we end up with 7.
Append the next digit (9) from the dividend to 7 and continue with: 79 / 31

Let's proceed to step 2:
When dividing 79 by 31, we get 2 with a remainder of 17.
Write down 2 as next digit of the result. 
Result so far: 2.0
Subtract 62 from 79 to get 17.
Fetch the next digit (6) from the dividend, attach it to 17 and continue: 176 / 31

Step 3:
When dividing 176 by 31, we get 5 with a remainder of 21.
The next digit of our result is 5. 
Result so far: 25.0
Subtracting 155 from 176 leaves us with 21.
Bring next digit (0) of the dividend behind the 21 and repeat the process: 210 / 31

Let's proceed to step 4:
When dividing 210 by 31, we get 6 with a remainder of 24.
The number 6 becomes the next digit in our result. 
Result so far: 256.0
If we take 186 away from 210, we end up with 24.
Append the next digit (2) from the dividend to 24 and continue with: 242 / 31

Step 5:
242 divided by 31 is 7 with a remainder of 25.
Record the quotient 7 as the next digit in the result. 
Result so far: 2567.0
The remainder is 25 after subtracting 217 from 242.
Bring next digit (1) of the dividend behind the 25 and repeat the process: 251 / 31

On to step 6:
251 divided by 31 is 8 with a remainder of 3.
Record the quotient 8 as the next digit in the result. 
Result so far: 25678.0
Deduct 248 from 251 and we're left with 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

On to step 7:
30 divided by 31 is 0 with a remainder of 30.
Record the quotient 0 as the next digit in the result. 
Result so far: 25678.0
Subtracting 0 from 30 leaves us with 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Going ahead to step 8:
The number 31 fits into 300 9 times, leaving a remainder of 21.
The next digit of our result is 9. 
Result so far: 25678.09
Deduct 279 from 300 and we're left with 21.
Since there are no more digits in the dividend, we add a zero to the remainder making it 210, and continue the process.

Moving on to step 9:
When dividing 210 by 31, we get 6 with a remainder of 24.
Use 6 as the next digit of our solution. 
Result so far: 25678.096
Deduct 186 from 210 and we're left with 24.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

Step 10:
The number 31 fits into 240 7 times, leaving a remainder of 23.
Use 7 as the next digit of our solution. 
Result so far: 25678.0967
If we subtract 217 from 240, we get 23.
Since there are no more digits in the dividend, we add a zero to the remainder making it 230, and continue the process.

Going ahead to step 11:
When dividing 230 by 31, we get 7 with a remainder of 13.
Use 7 as the next digit of our solution. 
Result so far: 25678.09677
If we subtract 217 from 230, we get 13.
Since there are no more digits in the dividend, we add a zero to the remainder making it 130, and continue the process.

The final outcome is 25678.09677, with a leftover of 1.3e-05.