We're dividing 317228 by 31 
Let's see how many times 31 fits into 317228.

Moving on to step 1:
31 can be fit into 3 0 times, resulting in a remainder of 3.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Deduct 0 from 3 and we're left with 3.
Include the next digit (1) from the dividend after 3, then repeat: 31 / 31

On to step 2:
31 can be fit into 31 1 times, resulting in a remainder of 0.
Use 1 as the next digit of our solution. 
Result so far: 1.0
If we take 31 away from 31, we end up with 0.
Include the next digit (7) from the dividend after 0, then repeat: 7 / 31

On to step 3:
7 divided by 31 is 0 with a remainder of 7.
Put 0 as the next digit of the answer. 
Result so far: 10.0
Subtracting 0 from 7 leaves us with 7.
Include the next digit (2) from the dividend after 7, then repeat: 72 / 31

Going ahead to step 4:
The number 31 fits into 72 2 times, leaving a remainder of 10.
Write down 2 as next digit of the result. 
Result so far: 102.0
Deduct 62 from 72 and we're left with 10.
Include the next digit (2) from the dividend after 10, then repeat: 102 / 31

Step 5:
31 goes into 102 3 times with a remainder of 9.
Record the quotient 3 as the next digit in the result. 
Result so far: 1023.0
Subtract 93 from 102 to get 9.
Include the next digit (8) from the dividend after 9, then repeat: 98 / 31

On to step 6:
98 divided by 31 is 3 with a remainder of 5.
The number 3 becomes the next digit in our result. 
Result so far: 10233.0
If we subtract 93 from 98, we get 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Moving on to step 7:
The number 31 fits into 50 1 times, leaving a remainder of 19.
Record the quotient 1 as the next digit in the result. 
Result so far: 10233.1
Subtract 31 from 50 to 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.

Advancing to step 8:
The number 31 fits into 190 6 times, leaving a remainder of 4.
The next digit of our result is 6. 
Result so far: 10233.16
If we take 186 away from 190, we end up with 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

On to step 9:
The number 31 fits into 40 1 times, leaving a remainder of 9.
The number 1 becomes the next digit in our result. 
Result so far: 10233.161
Subtracting 31 from 40 leaves us 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.

Let's proceed to step 10:
The number 31 fits into 90 2 times, leaving a remainder of 28.
Record the quotient 2 as the next digit in the result. 
Result so far: 10233.1612
Deduct 62 from 90 and we're left 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.

Advancing to step 11:
If we divide 280 by 31, we get 9 and a remainder of 1.
The number 9 becomes the next digit in our result. 
Result so far: 10233.16129
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.

Advancing to step 12:
If we divide 10 by 31, we get 0 and a remainder of 10.
Use 0 as the next digit of our solution. 
Result so far: 10233.16129
Deduct 0 from 10 and we're left with 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Let's proceed to step 13:
If we divide 100 by 31, we get 3 and a remainder of 7.
Put 3 as the next digit of the answer. 
Result so far: 10233.1612903
Subtract 93 from 100 to get 7.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

Let's proceed to step 14:
31 goes into 70 2 times with a remainder of 8.
The next digit of our result is 2. 
Result so far: 10233.16129032
The remainder is 8 after subtracting 62 from 70.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

The final result is 10233.16129032 with a remainder of 8e-09.