We're dividing 40540386 by 802 
Let's see how many times 802 fits into 40540386.

Moving on to step 1:
When dividing 4 by 802, we get 0 with a remainder of 4.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Deduct 0 from 4 and we're left with 4.
Append the next digit (0) from the dividend to 4 and continue with: 40 / 802

Step 2:
If we divide 40 by 802, we get 0 and a remainder of 40.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Deduct 0 from 40 and we're left with 40.
Bring next digit (5) of the dividend behind the 40 and repeat the process: 405 / 802

On to step 3:
If we divide 405 by 802, we get 0 and a remainder of 405.
Write down 0 as next digit of the result. 
Result so far: 0.0
The remainder is 405 after subtracting 0 from 405.
Grab the next digit (4) from the dividend, add it to 405, then carry on: 4054 / 802

Advancing to step 4:
If we divide 4054 by 802, we get 5 and a remainder of 44.
Record the quotient 5 as the next digit in the result. 
Result so far: 5.0
Subtracting 4010 from 4054 leaves us with 44.
Append the next digit (0) from the dividend to 44 and continue with: 440 / 802

Advancing to step 5:
440 divided by 802 is 0 with a remainder of 440.
Put 0 as the next digit of the answer. 
Result so far: 50.0
Deduct 0 from 440 and we're left with 440.
Fetch the next digit (3) from the dividend, attach it to 440 and continue: 4403 / 802

Let's proceed to step 6:
When dividing 4403 by 802, we get 5 with a remainder of 393.
Write down 5 as next digit of the result. 
Result so far: 505.0
Subtracting 4010 from 4403 leaves us with 393.
Fetch the next digit (8) from the dividend, attach it to 393 and continue: 3938 / 802

Let's proceed to step 7:
The number 802 fits into 3938 4 times, leaving a remainder of 730.
Use 4 as the next digit of our solution. 
Result so far: 5054.0
Subtracting 3208 from 3938 leaves us with 730.
Append the next digit (6) from the dividend to 730 and continue with: 7306 / 802

Advancing to step 8:
7306 divided by 802 is 9 with a remainder of 88.
Record the quotient 9 as the next digit in the result. 
Result so far: 50549.0
The remainder is 88 after subtracting 7218 from 7306.
Since there are no more digits in the dividend, we add a zero to the remainder making it 880, and continue the process.

Advancing to step 9:
880 divided by 802 is 1 with a remainder of 78.
The number 1 becomes the next digit in our result. 
Result so far: 50549.1
If we take 802 away from 880, we end up with 78.
Since there are no more digits in the dividend, we add a zero to the remainder making it 780, and continue the process.

Going ahead to step 10:
When dividing 780 by 802, we get 0 with a remainder of 780.
Write down 0 as next digit of the result. 
Result so far: 50549.1
The remainder is 780 after subtracting 0 from 780.
Since there are no more digits in the dividend, we add a zero to the remainder making it 7800, and continue the process.

Step 11:
If we divide 7800 by 802, we get 9 and a remainder of 582.
The number 9 becomes the next digit in our result. 
Result so far: 50549.109
The remainder is 582 after subtracting 7218 from 7800.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5820, and continue the process.

Step 12:
If we divide 5820 by 802, we get 7 and a remainder of 206.
The number 7 becomes the next digit in our result. 
Result so far: 50549.1097
Subtracting 5614 from 5820 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.

On to step 13:
If we divide 2060 by 802, we get 2 and a remainder of 456.
The next digit of our result is 2. 
Result so far: 50549.10972
If we subtract 1604 from 2060, we get 456.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4560, and continue the process.

Advancing to step 14:
802 goes into 4560 5 times with a remainder of 550.
Write down 5 as next digit of the result. 
Result so far: 50549.109725
If we subtract 4010 from 4560, we get 550.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5500, and continue the process.

Let's proceed to step 15:
802 can be fit into 5500 6 times, resulting in a remainder of 688.
The next digit of our result is 6. 
Result so far: 50549.1097256
Deduct 4812 from 5500 and we're left with 688.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6880, and continue the process.

On to step 16:
When dividing 6880 by 802, we get 8 with a remainder of 464.
Use 8 as the next digit of our solution. 
Result so far: 50549.10972568
Subtract 6416 from 6880 to get 464.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4640, and continue the process.

After the division, we end up with 50549.10972568 and a remainder of 4.64e-07.