We're dividing 318712 by 12 
We want to divide 318712 by 12.

Let's proceed to step 1:
12 can be fit into 3 0 times, resulting in a remainder of 3.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Deduct 0 from 3 and we're left with 3.
Append the next digit (1) from the dividend to 3 and continue with: 31 / 12

Going ahead to step 2:
The number 12 fits into 31 2 times, leaving a remainder of 7.
The next digit of our result is 2. 
Result so far: 2.0
Subtracting 24 from 31 leaves us with 7.
Fetch the next digit (8) from the dividend, attach it to 7 and continue: 78 / 12

On to step 3:
12 can be fit into 78 6 times, resulting in a remainder of 6.
Record the quotient 6 as the next digit in the result. 
Result so far: 26.0
If we subtract 72 from 78, we get 6.
Grab the next digit (7) from the dividend, add it to 6, then carry on: 67 / 12

Moving on to step 4:
The number 12 fits into 67 5 times, leaving a remainder of 7.
Put 5 as the next digit of the answer. 
Result so far: 265.0
Subtract 60 from 67 to get 7.
Grab the next digit (1) from the dividend, add it to 7, then carry on: 71 / 12

Advancing to step 5:
The number 12 fits into 71 5 times, leaving a remainder of 11.
Put 5 as the next digit of the answer. 
Result so far: 2655.0
If we subtract 60 from 71, we get 11.
Fetch the next digit (2) from the dividend, attach it to 11 and continue: 112 / 12

Step 6:
12 can be fit into 112 9 times, resulting in a remainder of 4.
Use 9 as the next digit of our solution. 
Result so far: 26559.0
Subtracting 108 from 112 leaves us 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.

Step 7:
If we divide 40 by 12, we get 3 and a remainder of 4.
Record the quotient 3 as the next digit in the result. 
Result so far: 26559.3
If we subtract 36 from 40, 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.

Let's proceed to step 8:
If we divide 40 by 12, we get 3 and a remainder of 4.
The number 3 becomes the next digit in our result. 
Result so far: 26559.33
If we subtract 36 from 40, 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.

Our division results in 26559.33 with a remaining 0.004.