8140987 divided by 339 
Our goal is to divide 8140987 by 339.

Going ahead to step 1:
339 can be fit into 8 0 times, resulting in a remainder of 8.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we subtract 0 from 8, we get 8.
Include the next digit (1) from the dividend after 8, then repeat: 81 / 339

Moving on to step 2:
339 can be fit into 81 0 times, resulting in a remainder of 81.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we take 0 away from 81, we end up with 81.
Fetch the next digit (4) from the dividend, attach it to 81 and continue: 814 / 339

Step 3:
The number 339 fits into 814 2 times, leaving a remainder of 136.
The number 2 becomes the next digit in our result. 
Result so far: 2.0
If we take 678 away from 814, we end up with 136.
Grab the next digit (0) from the dividend, add it to 136, then carry on: 1360 / 339

Advancing to step 4:
339 can be fit into 1360 4 times, resulting in a remainder of 4.
Put 4 as the next digit of the answer. 
Result so far: 24.0
If we subtract 1356 from 1360, we get 4.
Include the next digit (9) from the dividend after 4, then repeat: 49 / 339

Advancing to step 5:
49 divided by 339 is 0 with a remainder of 49.
Write down 0 as next digit of the result. 
Result so far: 240.0
If we take 0 away from 49, we end up with 49.
Take the next digit (8) from the dividend and append it to 49, then repeat: 498 / 339

Moving on to step 6:
The number 339 fits into 498 1 times, leaving a remainder of 159.
Use 1 as the next digit of our solution. 
Result so far: 2401.0
If we take 339 away from 498, we end up with 159.
Include the next digit (7) from the dividend after 159, then repeat: 1597 / 339

Let's proceed to step 7:
If we divide 1597 by 339, we get 4 and a remainder of 241.
The number 4 becomes the next digit in our result. 
Result so far: 24014.0
If we take 1356 away from 1597, we end up with 241.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2410, and continue the process.

Advancing to step 8:
339 can be fit into 2410 7 times, resulting in a remainder of 37.
Put 7 as the next digit of the answer. 
Result so far: 24014.7
Subtracting 2373 from 2410 leaves us with 37.
Since there are no more digits in the dividend, we add a zero to the remainder making it 370, and continue the process.

On to step 9:
370 divided by 339 is 1 with a remainder of 31.
Record the quotient 1 as the next digit in the result. 
Result so far: 24014.71
Subtracting 339 from 370 leaves us with 31.
Since there are no more digits in the dividend, we add a zero to the remainder making it 310, and continue the process.

Advancing to step 10:
If we divide 310 by 339, we get 0 and a remainder of 310.
Record the quotient 0 as the next digit in the result. 
Result so far: 24014.71
Subtracting 0 from 310 leaves us with 310.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3100, and continue the process.

On to step 11:
If we divide 3100 by 339, we get 9 and a remainder of 49.
The number 9 becomes the next digit in our result. 
Result so far: 24014.7109
Subtracting 3051 from 3100 leaves us with 49.
Since there are no more digits in the dividend, we add a zero to the remainder making it 490, and continue the process.

Step 12:
When dividing 490 by 339, we get 1 with a remainder of 151.
Record the quotient 1 as the next digit in the result. 
Result so far: 24014.71091
The remainder is 151 after subtracting 339 from 490.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1510, and continue the process.

Going ahead to step 13:
When dividing 1510 by 339, we get 4 with a remainder of 154.
The number 4 becomes the next digit in our result. 
Result so far: 24014.710914
If we subtract 1356 from 1510, we get 154.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1540, and continue the process.

Going ahead to step 14:
When dividing 1540 by 339, we get 4 with a remainder of 184.
Put 4 as the next digit of the answer. 
Result so far: 24014.7109144
Subtracting 1356 from 1540 leaves us with 184.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1840, and continue the process.

After the division, we end up with 24014.7109144 and a remainder of 1.84e-06.