We look at the division of 40878505 by 179 
We want to divide 40878505 by 179.

Advancing to step 1:
If we divide 4 by 179, we get 0 and a remainder of 4.
Use 0 as the next digit of our solution. 
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 / 179

Let's proceed to step 2:
179 goes into 40 0 times with a remainder of 40.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we take 0 away from 40, we end up with 40.
Bring next digit (8) of the dividend behind the 40 and repeat the process: 408 / 179

On to step 3:
179 goes into 408 2 times with a remainder of 50.
Write down 2 as next digit of the result. 
Result so far: 2.0
Deduct 358 from 408 and we're left with 50.
Take the next digit (7) from the dividend and append it to 50, then repeat: 507 / 179

Let's proceed to step 4:
When dividing 507 by 179, we get 2 with a remainder of 149.
The next digit of our result is 2. 
Result so far: 22.0
If we take 358 away from 507, we end up with 149.
Fetch the next digit (8) from the dividend, attach it to 149 and continue: 1498 / 179

Advancing to step 5:
179 goes into 1498 8 times with a remainder of 66.
Record the quotient 8 as the next digit in the result. 
Result so far: 228.0
If we take 1432 away from 1498, we end up with 66.
Bring next digit (5) of the dividend behind the 66 and repeat the process: 665 / 179

Step 6:
The number 179 fits into 665 3 times, leaving a remainder of 128.
The number 3 becomes the next digit in our result. 
Result so far: 2283.0
The remainder is 128 after subtracting 537 from 665.
Grab the next digit (0) from the dividend, add it to 128, then carry on: 1280 / 179

Let's proceed to step 7:
1280 divided by 179 is 7 with a remainder of 27.
Write down 7 as next digit of the result. 
Result so far: 22837.0
Subtracting 1253 from 1280 leaves us with 27.
Include the next digit (5) from the dividend after 27, then repeat: 275 / 179

Step 8:
When dividing 275 by 179, we get 1 with a remainder of 96.
Put 1 as the next digit of the answer. 
Result so far: 228371.0
The remainder is 96 after subtracting 179 from 275.
Since there are no more digits in the dividend, we add a zero to the remainder making it 960, and continue the process.

Moving on to step 9:
If we divide 960 by 179, we get 5 and a remainder of 65.
Write down 5 as next digit of the result. 
Result so far: 228371.5
Deduct 895 from 960 and we're left with 65.
Since there are no more digits in the dividend, we add a zero to the remainder making it 650, and continue the process.

On to step 10:
The number 179 fits into 650 3 times, leaving a remainder of 113.
Write down 3 as next digit of the result. 
Result so far: 228371.53
Subtract 537 from 650 to get 113.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1130, and continue the process.

Let's proceed to step 11:
The number 179 fits into 1130 6 times, leaving a remainder of 56.
Write down 6 as next digit of the result. 
Result so far: 228371.536
The remainder is 56 after subtracting 1074 from 1130.
Since there are no more digits in the dividend, we add a zero to the remainder making it 560, and continue the process.

Step 12:
If we divide 560 by 179, we get 3 and a remainder of 23.
The next digit of our result is 3. 
Result so far: 228371.5363
Subtract 537 from 560 to get 23.
Since there are no more digits in the dividend, we add a zero to the remainder making it 230, and continue the process.

Moving on to step 13:
When dividing 230 by 179, we get 1 with a remainder of 51.
Write down 1 as next digit of the result. 
Result so far: 228371.53631
If we take 179 away from 230, we end up with 51.
Since there are no more digits in the dividend, we add a zero to the remainder making it 510, and continue the process.

Advancing to step 14:
When dividing 510 by 179, we get 2 with a remainder of 152.
The next digit of our result is 2. 
Result so far: 228371.536312
Deduct 358 from 510 and we're left with 152.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1520, and continue the process.

Let's proceed to step 15:
If we divide 1520 by 179, we get 8 and a remainder of 88.
Use 8 as the next digit of our solution. 
Result so far: 228371.5363128
The remainder is 88 after subtracting 1432 from 1520.
Since there are no more digits in the dividend, we add a zero to the remainder making it 880, and continue the process.

On to step 16:
880 divided by 179 is 4 with a remainder of 164.
Use 4 as the next digit of our solution. 
Result so far: 228371.53631284
If we subtract 716 from 880, we get 164.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1640, and continue the process.

The final outcome is 228371.53631284, with a leftover of 1.64e-07.