We look at the division of 1279 by 40 
Let's see how many times 40 fits into 1279.

Going ahead to step 1:
1 divided by 40 is 0 with a remainder of 1.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtract 0 from 1 to get 1.
Append the next digit (2) from the dividend to 1 and continue with: 12 / 40

Let's proceed to step 2:
40 can be fit into 12 0 times, resulting in a remainder of 12.
The next digit of our result is 0. 
Result so far: 0.0
Subtracting 0 from 12 leaves us with 12.
Grab the next digit (7) from the dividend, add it to 12, then carry on: 127 / 40

Step 3:
40 can be fit into 127 3 times, resulting in a remainder of 7.
Put 3 as the next digit of the answer. 
Result so far: 3.0
If we take 120 away from 127, we end up with 7.
Grab the next digit (9) from the dividend, add it to 7, then carry on: 79 / 40

On to step 4:
If we divide 79 by 40, we get 1 and a remainder of 39.
Use 1 as the next digit of our solution. 
Result so far: 31.0
If we take 40 away from 79, we end up with 39.
Since there are no more digits in the dividend, we add a zero to the remainder making it 390, and continue the process.

On to step 5:
390 divided by 40 is 9 with a remainder of 30.
Record the quotient 9 as the next digit in the result. 
Result so far: 31.9
If we subtract 360 from 390, we get 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

On to step 6:
If we divide 300 by 40, we get 7 and a remainder of 20.
Use 7 as the next digit of our solution. 
Result so far: 31.97
If we subtract 280 from 300, we get 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

On to step 7:
When dividing 200 by 40, we get 5 with a remainder of 0.
The next digit of our result is 5. 
Result so far: 31.975
The remainder is 0 after subtracting 200 from 200.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Advancing to step 8:
40 goes into 0 0 times with a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 31.975
If we subtract 0 from 0, we get 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Going ahead to step 9:
When dividing 0 by 40, we get 0 with a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 31.975
If we subtract 0 from 0, we get 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Our division results in 31.975 with a remaining 0.0.