We look at the division of 297478 by 31 
Our goal is to divide 297478 by 31.

Moving on to step 1:
31 goes into 2 0 times with a remainder of 2.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we subtract 0 from 2, we get 2.
Bring next digit (9) of the dividend behind the 2 and repeat the process: 29 / 31

Moving on to step 2:
31 goes into 29 0 times with a remainder of 29.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Deduct 0 from 29 and we're left with 29.
Grab the next digit (7) from the dividend, add it to 29, then carry on: 297 / 31

On to step 3:
The number 31 fits into 297 9 times, leaving a remainder of 18.
The next digit of our result is 9. 
Result so far: 9.0
If we subtract 279 from 297, we get 18.
Grab the next digit (4) from the dividend, add it to 18, then carry on: 184 / 31

Advancing to step 4:
When dividing 184 by 31, we get 5 with a remainder of 29.
Record the quotient 5 as the next digit in the result. 
Result so far: 95.0
Subtracting 155 from 184 leaves us with 29.
Append the next digit (7) from the dividend to 29 and continue with: 297 / 31

Moving on to step 5:
297 divided by 31 is 9 with a remainder of 18.
Write down 9 as next digit of the result. 
Result so far: 959.0
The remainder is 18 after subtracting 279 from 297.
Take the next digit (8) from the dividend and append it to 18, then repeat: 188 / 31

Moving on to step 6:
188 divided by 31 is 6 with a remainder of 2.
Record the quotient 6 as the next digit in the result. 
Result so far: 9596.0
Deduct 186 from 188 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.

Moving on to step 7:
The number 31 fits into 20 0 times, leaving a remainder of 20.
Put 0 as the next digit of the answer. 
Result so far: 9596.0
Deduct 0 from 20 and we're left with 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 8:
31 can be fit into 200 6 times, resulting in a remainder of 14.
Write down 6 as next digit of the result. 
Result so far: 9596.06
Subtracting 186 from 200 leaves us with 14.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

Advancing to step 9:
31 goes into 140 4 times with a remainder of 16.
The next digit of our result is 4. 
Result so far: 9596.064
Subtracting 124 from 140 leaves us 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.

Going ahead to step 10:
The number 31 fits into 160 5 times, leaving a remainder of 5.
The number 5 becomes the next digit in our result. 
Result so far: 9596.0645
Deduct 155 from 160 and we're left with 5.
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 11:
The number 31 fits into 50 1 times, leaving a remainder of 19.
The number 1 becomes the next digit in our result. 
Result so far: 9596.06451
If we take 31 away from 50, we end up with 19.
Since there are no more digits in the dividend, we add a zero to the remainder making it 190, and continue the process.

Let's proceed to step 12:
31 can be fit into 190 6 times, resulting in a remainder of 4.
Use 6 as the next digit of our solution. 
Result so far: 9596.064516
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.

Let's proceed to step 13:
When dividing 40 by 31, we get 1 with a remainder of 9.
The next digit of our result is 1. 
Result so far: 9596.0645161
The remainder is 9 after subtracting 31 from 40.
Since there are no more digits in the dividend, we add a zero to the remainder making it 90, and continue the process.

Let's proceed to step 14:
90 divided by 31 is 2 with a remainder of 28.
The number 2 becomes the next digit in our result. 
Result so far: 9596.06451612
If we take 62 away from 90, we end up 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.

The quotient of the division is 9596.06451612, and the remainder is 2.8e-08.