Let's divide 297864 by 31
We want to divide 297864 by 31.

Step 1:
When dividing 2 by 31, we get 0 with a remainder of 2.
The next digit of our result is 0. 
Result so far: 0.0
Deduct 0 from 2 and we're left with 2.
Fetch the next digit (9) from the dividend, attach it to 2 and continue: 29 / 31

Moving on to step 2:
The number 31 fits into 29 0 times, leaving a remainder of 29.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
The remainder is 29 after subtracting 0 from 29.
Include the next digit (7) from the dividend after 29, then repeat: 297 / 31

Going ahead to step 3:
When dividing 297 by 31, we get 9 with a remainder of 18.
Write down 9 as next digit of the result. 
Result so far: 9.0
If we take 279 away from 297, we end up with 18.
Include the next digit (8) from the dividend after 18, then repeat: 188 / 31

Going ahead to step 4:
188 divided by 31 is 6 with a remainder of 2.
The next digit of our result is 6. 
Result so far: 96.0
If we subtract 186 from 188, we get 2.
Include the next digit (6) from the dividend after 2, then repeat: 26 / 31

Advancing to step 5:
The number 31 fits into 26 0 times, leaving a remainder of 26.
Put 0 as the next digit of the answer. 
Result so far: 960.0
Subtract 0 from 26 to get 26.
Take the next digit (4) from the dividend and append it to 26, then repeat: 264 / 31

Advancing to step 6:
If we divide 264 by 31, we get 8 and a remainder of 16.
The number 8 becomes the next digit in our result. 
Result so far: 9608.0
Deduct 248 from 264 and we're left with 16.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

On to step 7:
When dividing 160 by 31, we get 5 with a remainder of 5.
Record the quotient 5 as the next digit in the result. 
Result so far: 9608.5
The remainder is 5 after subtracting 155 from 160.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Let's proceed to step 8:
If we divide 50 by 31, we get 1 and a remainder of 19.
The next digit of our result is 1. 
Result so far: 9608.51
If we subtract 31 from 50, we get 19.
Since there are no more digits in the dividend, we add a zero to the remainder making it 190, and continue the process.

Step 9:
31 goes into 190 6 times with a remainder of 4.
Use 6 as the next digit of our solution. 
Result so far: 9608.516
Subtract 186 from 190 to get 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Step 10:
When dividing 40 by 31, we get 1 with a remainder of 9.
The number 1 becomes the next digit in our result. 
Result so far: 9608.5161
Deduct 31 from 40 and we're left with 9.
Since there are no more digits in the dividend, we add a zero to the remainder making it 90, and continue the process.

On to step 11:
When dividing 90 by 31, we get 2 with a remainder of 28.
Write down 2 as next digit of the result. 
Result so far: 9608.51612
Subtracting 62 from 90 leaves us with 28.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

Moving on to step 12:
When dividing 280 by 31, we get 9 with a remainder of 1.
Use 9 as the next digit of our solution. 
Result so far: 9608.516129
The remainder is 1 after subtracting 279 from 280.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Let's proceed to step 13:
If we divide 10 by 31, we get 0 and a remainder of 10.
The number 0 becomes the next digit in our result. 
Result so far: 9608.516129
Subtract 0 from 10 to get 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

On to step 14:
The number 31 fits into 100 3 times, leaving a remainder of 7.
The number 3 becomes the next digit in our result. 
Result so far: 9608.51612903
Deduct 93 from 100 and we're left with 7.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

The final outcome is 9608.51612903, with a leftover of 7e-09.