4051278 ÷ 331 
We want to divide 4051278 by 331.

On to step 1:
If we divide 4 by 331, we get 0 and a remainder of 4.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we take 0 away from 4, we end up with 4.
Grab the next digit (0) from the dividend, add it to 4, then carry on: 40 / 331

Step 2:
40 divided by 331 is 0 with a remainder of 40.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we take 0 away from 40, we end up with 40.
Grab the next digit (5) from the dividend, add it to 40, then carry on: 405 / 331

Going ahead to step 3:
The number 331 fits into 405 1 times, leaving a remainder of 74.
The next digit of our result is 1. 
Result so far: 1.0
Deduct 331 from 405 and we're left with 74.
Take the next digit (1) from the dividend and append it to 74, then repeat: 741 / 331

Step 4:
The number 331 fits into 741 2 times, leaving a remainder of 79.
Use 2 as the next digit of our solution. 
Result so far: 12.0
Deduct 662 from 741 and we're left with 79.
Bring next digit (2) of the dividend behind the 79 and repeat the process: 792 / 331

On to step 5:
When dividing 792 by 331, we get 2 with a remainder of 130.
Put 2 as the next digit of the answer. 
Result so far: 122.0
Subtracting 662 from 792 leaves us with 130.
Grab the next digit (7) from the dividend, add it to 130, then carry on: 1307 / 331

On to step 6:
If we divide 1307 by 331, we get 3 and a remainder of 314.
Put 3 as the next digit of the answer. 
Result so far: 1223.0
Subtracting 993 from 1307 leaves us with 314.
Fetch the next digit (8) from the dividend, attach it to 314 and continue: 3148 / 331

Going ahead to step 7:
331 can be fit into 3148 9 times, resulting in a remainder of 169.
Write down 9 as next digit of the result. 
Result so far: 12239.0
The remainder is 169 after subtracting 2979 from 3148.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1690, and continue the process.

On to step 8:
1690 divided by 331 is 5 with a remainder of 35.
Put 5 as the next digit of the answer. 
Result so far: 12239.5
Deduct 1655 from 1690 and we're left with 35.
Since there are no more digits in the dividend, we add a zero to the remainder making it 350, and continue the process.

Advancing to step 9:
If we divide 350 by 331, we get 1 and a remainder of 19.
The next digit of our result is 1. 
Result so far: 12239.51
Subtract 331 from 350 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 10:
331 goes into 190 0 times with a remainder of 190.
Put 0 as the next digit of the answer. 
Result so far: 12239.51
The remainder is 190 after subtracting 0 from 190.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1900, and continue the process.

Advancing to step 11:
If we divide 1900 by 331, we get 5 and a remainder of 245.
The next digit of our result is 5. 
Result so far: 12239.5105
Subtract 1655 from 1900 to get 245.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2450, and continue the process.

Going ahead to step 12:
331 can be fit into 2450 7 times, resulting in a remainder of 133.
Put 7 as the next digit of the answer. 
Result so far: 12239.51057
The remainder is 133 after subtracting 2317 from 2450.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1330, and continue the process.

On to step 13:
The number 331 fits into 1330 4 times, leaving a remainder of 6.
Record the quotient 4 as the next digit in the result. 
Result so far: 12239.510574
Deduct 1324 from 1330 and we're left with 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Advancing to step 14:
The number 331 fits into 60 0 times, leaving a remainder of 60.
Use 0 as the next digit of our solution. 
Result so far: 12239.510574
If we subtract 0 from 60, we get 60.
Since there are no more digits in the dividend, we add a zero to the remainder making it 600, and continue the process.

Step 15:
If we divide 600 by 331, we get 1 and a remainder of 269.
The number 1 becomes the next digit in our result. 
Result so far: 12239.51057401
If we take 331 away from 600, we end up with 269.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2690, and continue the process.

In conclusion, the division gives 12239.51057401 with a balance of 2.69e-07.