We're dividing 40002960 by 502 
Let's see how many times 502 fits into 40002960.

On to step 1:
When dividing 4 by 502, we get 0 with a remainder of 4.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtract 0 from 4 to get 4.
Fetch the next digit (0) from the dividend, attach it to 4 and continue: 40 / 502

Moving on to step 2:
When dividing 40 by 502, we get 0 with a remainder of 40.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we take 0 away from 40, we end up with 40.
Take the next digit (0) from the dividend and append it to 40, then repeat: 400 / 502

Step 3:
400 divided by 502 is 0 with a remainder of 400.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Subtracting 0 from 400 leaves us with 400.
Take the next digit (0) from the dividend and append it to 400, then repeat: 4000 / 502

Going ahead to step 4:
502 can be fit into 4000 7 times, resulting in a remainder of 486.
Put 7 as the next digit of the answer. 
Result so far: 7.0
The remainder is 486 after subtracting 3514 from 4000.
Take the next digit (2) from the dividend and append it to 486, then repeat: 4862 / 502

Going ahead to step 5:
When dividing 4862 by 502, we get 9 with a remainder of 344.
Write down 9 as next digit of the result. 
Result so far: 79.0
If we subtract 4518 from 4862, we get 344.
Grab the next digit (9) from the dividend, add it to 344, then carry on: 3449 / 502

On to step 6:
The number 502 fits into 3449 6 times, leaving a remainder of 437.
Write down 6 as next digit of the result. 
Result so far: 796.0
If we subtract 3012 from 3449, we get 437.
Bring next digit (6) of the dividend behind the 437 and repeat the process: 4376 / 502

Advancing to step 7:
The number 502 fits into 4376 8 times, leaving a remainder of 360.
The next digit of our result is 8. 
Result so far: 7968.0
Deduct 4016 from 4376 and we're left with 360.
Append the next digit (0) from the dividend to 360 and continue with: 3600 / 502

Step 8:
502 can be fit into 3600 7 times, resulting in a remainder of 86.
The next digit of our result is 7. 
Result so far: 79687.0
The remainder is 86 after subtracting 3514 from 3600.
Since there are no more digits in the dividend, we add a zero to the remainder making it 860, and continue the process.

Moving on to step 9:
502 goes into 860 1 times with a remainder of 358.
Put 1 as the next digit of the answer. 
Result so far: 79687.1
The remainder is 358 after subtracting 502 from 860.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3580, and continue the process.

Step 10:
If we divide 3580 by 502, we get 7 and a remainder of 66.
The number 7 becomes the next digit in our result. 
Result so far: 79687.17
Subtract 3514 from 3580 to get 66.
Since there are no more digits in the dividend, we add a zero to the remainder making it 660, and continue the process.

Going ahead to step 11:
660 divided by 502 is 1 with a remainder of 158.
Put 1 as the next digit of the answer. 
Result so far: 79687.171
Subtract 502 from 660 to get 158.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1580, and continue the process.

Let's proceed to step 12:
The number 502 fits into 1580 3 times, leaving a remainder of 74.
The next digit of our result is 3. 
Result so far: 79687.1713
If we take 1506 away from 1580, we end up with 74.
Since there are no more digits in the dividend, we add a zero to the remainder making it 740, and continue the process.

Going ahead to step 13:
When dividing 740 by 502, we get 1 with a remainder of 238.
The next digit of our result is 1. 
Result so far: 79687.17131
If we take 502 away from 740, we end up with 238.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2380, and continue the process.

Let's proceed to step 14:
502 can be fit into 2380 4 times, resulting in a remainder of 372.
Use 4 as the next digit of our solution. 
Result so far: 79687.171314
Subtracting 2008 from 2380 leaves us with 372.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3720, and continue the process.

Going ahead to step 15:
502 can be fit into 3720 7 times, resulting in a remainder of 206.
Write down 7 as next digit of the result. 
Result so far: 79687.1713147
Subtracting 3514 from 3720 leaves us with 206.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2060, and continue the process.

Moving on to step 16:
502 can be fit into 2060 4 times, resulting in a remainder of 52.
The number 4 becomes the next digit in our result. 
Result so far: 79687.17131474
Subtract 2008 from 2060 to get 52.
Since there are no more digits in the dividend, we add a zero to the remainder making it 520, and continue the process.

The quotient of the division is 79687.17131474, and the remainder is 5.2e-08.