Let's divide 940012 by 31
We're looking to find how many times 31 goes into 940012.

On to step 1:
The number 31 fits into 9 0 times, leaving a remainder of 9.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtracting 0 from 9 leaves us with 9.
Bring next digit (4) of the dividend behind the 9 and repeat the process: 94 / 31

Let's proceed to step 2:
94 divided by 31 is 3 with a remainder of 1.
Write down 3 as next digit of the result. 
Result so far: 3.0
The remainder is 1 after subtracting 93 from 94.
Include the next digit (0) from the dividend after 1, then repeat: 10 / 31

Let's proceed to step 3:
31 goes into 10 0 times with a remainder of 10.
Write down 0 as next digit of the result. 
Result so far: 30.0
The remainder is 10 after subtracting 0 from 10.
Grab the next digit (0) from the dividend, add it to 10, then carry on: 100 / 31

Step 4:
100 divided by 31 is 3 with a remainder of 7.
Use 3 as the next digit of our solution. 
Result so far: 303.0
Subtract 93 from 100 to get 7.
Take the next digit (1) from the dividend and append it to 7, then repeat: 71 / 31

Moving on to step 5:
31 goes into 71 2 times with a remainder of 9.
Write down 2 as next digit of the result. 
Result so far: 3032.0
If we subtract 62 from 71, we get 9.
Grab the next digit (2) from the dividend, add it to 9, then carry on: 92 / 31

On to step 6:
When dividing 92 by 31, we get 2 with a remainder of 30.
The number 2 becomes the next digit in our result. 
Result so far: 30322.0
Subtracting 62 from 92 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.

Advancing to step 7:
31 goes into 300 9 times with a remainder of 21.
The number 9 becomes the next digit in our result. 
Result so far: 30322.9
Subtract 279 from 300 to get 21.
Since there are no more digits in the dividend, we add a zero to the remainder making it 210, and continue the process.

On to step 8:
31 can be fit into 210 6 times, resulting in a remainder of 24.
Put 6 as the next digit of the answer. 
Result so far: 30322.96
If we subtract 186 from 210, we get 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 9:
240 divided by 31 is 7 with a remainder of 23.
Put 7 as the next digit of the answer. 
Result so far: 30322.967
The remainder is 23 after subtracting 217 from 240.
Since there are no more digits in the dividend, we add a zero to the remainder making it 230, and continue the process.

Advancing to step 10:
230 divided by 31 is 7 with a remainder of 13.
Use 7 as the next digit of our solution. 
Result so far: 30322.9677
Subtracting 217 from 230 leaves us with 13.
Since there are no more digits in the dividend, we add a zero to the remainder making it 130, and continue the process.

In conclusion, the division gives 30322.9677 with a balance of 0.00013.