40398623 ÷ 879 
We want to divide 40398623 by 879.

Step 1:
When dividing 4 by 879, we get 0 with a remainder of 4.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we subtract 0 from 4, we get 4.
Fetch the next digit (0) from the dividend, attach it to 4 and continue: 40 / 879

On to step 2:
879 can be fit into 40 0 times, resulting in 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.
Include the next digit (3) from the dividend after 40, then repeat: 403 / 879

On to step 3:
403 divided by 879 is 0 with a remainder of 403.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtracting 0 from 403 leaves us with 403.
Append the next digit (9) from the dividend to 403 and continue with: 4039 / 879

Going ahead to step 4:
4039 divided by 879 is 4 with a remainder of 523.
The next digit of our result is 4. 
Result so far: 4.0
If we take 3516 away from 4039, we end up with 523.
Append the next digit (8) from the dividend to 523 and continue with: 5238 / 879

On to step 5:
The number 879 fits into 5238 5 times, leaving a remainder of 843.
The next digit of our result is 5. 
Result so far: 45.0
Subtract 4395 from 5238 to get 843.
Include the next digit (6) from the dividend after 843, then repeat: 8436 / 879

Step 6:
879 goes into 8436 9 times with a remainder of 525.
Use 9 as the next digit of our solution. 
Result so far: 459.0
Subtracting 7911 from 8436 leaves us with 525.
Bring next digit (2) of the dividend behind the 525 and repeat the process: 5252 / 879

Advancing to step 7:
879 goes into 5252 5 times with a remainder of 857.
Put 5 as the next digit of the answer. 
Result so far: 4595.0
Deduct 4395 from 5252 and we're left with 857.
Bring next digit (3) of the dividend behind the 857 and repeat the process: 8573 / 879

Let's proceed to step 8:
8573 divided by 879 is 9 with a remainder of 662.
Use 9 as the next digit of our solution. 
Result so far: 45959.0
Subtract 7911 from 8573 to get 662.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6620, and continue the process.

Let's proceed to step 9:
When dividing 6620 by 879, we get 7 with a remainder of 467.
The number 7 becomes the next digit in our result. 
Result so far: 45959.7
Subtracting 6153 from 6620 leaves us with 467.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4670, and continue the process.

Step 10:
When dividing 4670 by 879, we get 5 with a remainder of 275.
Write down 5 as next digit of the result. 
Result so far: 45959.75
If we take 4395 away from 4670, we end up with 275.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2750, and continue the process.

On to step 11:
When dividing 2750 by 879, we get 3 with a remainder of 113.
Write down 3 as next digit of the result. 
Result so far: 45959.753
The remainder is 113 after subtracting 2637 from 2750.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1130, and continue the process.

Moving on to step 12:
When dividing 1130 by 879, we get 1 with a remainder of 251.
Use 1 as the next digit of our solution. 
Result so far: 45959.7531
Subtract 879 from 1130 to get 251.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2510, and continue the process.

Step 13:
879 can be fit into 2510 2 times, resulting in a remainder of 752.
Put 2 as the next digit of the answer. 
Result so far: 45959.75312
If we take 1758 away from 2510, we end up with 752.
Since there are no more digits in the dividend, we add a zero to the remainder making it 7520, and continue the process.

Let's proceed to step 14:
7520 divided by 879 is 8 with a remainder of 488.
The number 8 becomes the next digit in our result. 
Result so far: 45959.753128
If we take 7032 away from 7520, we end up with 488.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4880, and continue the process.

On to step 15:
If we divide 4880 by 879, we get 5 and a remainder of 485.
Record the quotient 5 as the next digit in the result. 
Result so far: 45959.7531285
Subtracting 4395 from 4880 leaves us with 485.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4850, and continue the process.

Going ahead to step 16:
4850 divided by 879 is 5 with a remainder of 455.
The next digit of our result is 5. 
Result so far: 45959.75312855
Subtract 4395 from 4850 to get 455.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4550, and continue the process.

The quotient of the division is 45959.75312855, and the remainder is 4.55e-07.