12311 divided by 31 
Our goal is to divide 12311 by 31.

Step 1:
When dividing 1 by 31, we get 0 with a remainder of 1.
Write down 0 as next digit of the result. 
Result so far: 0.0
Deduct 0 from 1 and we're left with 1.
Take the next digit (2) from the dividend and append it to 1, then repeat: 12 / 31

Moving on to step 2:
If we divide 12 by 31, we get 0 and a remainder of 12.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we take 0 away from 12, we end up with 12.
Bring next digit (3) of the dividend behind the 12 and repeat the process: 123 / 31

Let's proceed to step 3:
31 goes into 123 3 times with a remainder of 30.
Write down 3 as next digit of the result. 
Result so far: 3.0
If we take 93 away from 123, we end up with 30.
Grab the next digit (1) from the dividend, add it to 30, then carry on: 301 / 31

Let's proceed to step 4:
When dividing 301 by 31, we get 9 with a remainder of 22.
Use 9 as the next digit of our solution. 
Result so far: 39.0
Subtract 279 from 301 to get 22.
Bring next digit (1) of the dividend behind the 22 and repeat the process: 221 / 31

Moving on to step 5:
When dividing 221 by 31, we get 7 with a remainder of 4.
Use 7 as the next digit of our solution. 
Result so far: 397.0
If we subtract 217 from 221, we 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.

Advancing to step 6:
The number 31 fits into 40 1 times, leaving a remainder of 9.
Write down 1 as next digit of the result. 
Result so far: 397.1
If we subtract 31 from 40, we get 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 7:
The number 31 fits into 90 2 times, leaving a remainder of 28.
The number 2 becomes the next digit in our result. 
Result so far: 397.12
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.

Moving on to step 8:
280 divided by 31 is 9 with a remainder of 1.
Use 9 as the next digit of our solution. 
Result so far: 397.129
Deduct 279 from 280 and we're left with 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Going ahead to step 9:
31 can be fit into 10 0 times, resulting in a remainder of 10.
Put 0 as the next digit of the answer. 
Result so far: 397.129
The remainder is 10 after subtracting 0 from 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Advancing to step 10:
31 goes into 100 3 times with a remainder of 7.
The number 3 becomes the next digit in our result. 
Result so far: 397.12903
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.

Going ahead to step 11:
31 can be fit into 70 2 times, resulting in a remainder of 8.
Use 2 as the next digit of our solution. 
Result so far: 397.129032
Subtracting 62 from 70 leaves us with 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Advancing to step 12:
The number 31 fits into 80 2 times, leaving a remainder of 18.
The next digit of our result is 2. 
Result so far: 397.1290322
The remainder is 18 after subtracting 62 from 80.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

The final outcome is 397.1290322, with a leftover of 1.8e-07.