Let's divide 40798178 by 129
We want to divide 40798178 by 129.

Going ahead to step 1:
4 divided by 129 is 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 / 129

Going ahead to step 2:
When dividing 40 by 129, we get 0 with a remainder of 40.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtracting 0 from 40 leaves us with 40.
Grab the next digit (7) from the dividend, add it to 40, then carry on: 407 / 129

Let's proceed to step 3:
The number 129 fits into 407 3 times, leaving a remainder of 20.
Put 3 as the next digit of the answer. 
Result so far: 3.0
The remainder is 20 after subtracting 387 from 407.
Take the next digit (9) from the dividend and append it to 20, then repeat: 209 / 129

Let's proceed to step 4:
129 goes into 209 1 times with a remainder of 80.
The next digit of our result is 1. 
Result so far: 31.0
Deduct 129 from 209 and we're left with 80.
Fetch the next digit (8) from the dividend, attach it to 80 and continue: 808 / 129

Advancing to step 5:
129 goes into 808 6 times with a remainder of 34.
Record the quotient 6 as the next digit in the result. 
Result so far: 316.0
If we take 774 away from 808, we end up with 34.
Fetch the next digit (1) from the dividend, attach it to 34 and continue: 341 / 129

Let's proceed to step 6:
341 divided by 129 is 2 with a remainder of 83.
Write down 2 as next digit of the result. 
Result so far: 3162.0
If we take 258 away from 341, we end up with 83.
Fetch the next digit (7) from the dividend, attach it to 83 and continue: 837 / 129

On to step 7:
When dividing 837 by 129, we get 6 with a remainder of 63.
Use 6 as the next digit of our solution. 
Result so far: 31626.0
If we subtract 774 from 837, we get 63.
Take the next digit (8) from the dividend and append it to 63, then repeat: 638 / 129

Going ahead to step 8:
638 divided by 129 is 4 with a remainder of 122.
The next digit of our result is 4. 
Result so far: 316264.0
The remainder is 122 after subtracting 516 from 638.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1220, and continue the process.

On to step 9:
The number 129 fits into 1220 9 times, leaving a remainder of 59.
The number 9 becomes the next digit in our result. 
Result so far: 316264.9
Deduct 1161 from 1220 and we're left with 59.
Since there are no more digits in the dividend, we add a zero to the remainder making it 590, and continue the process.

Let's proceed to step 10:
When dividing 590 by 129, we get 4 with a remainder of 74.
Write down 4 as next digit of the result. 
Result so far: 316264.94
The remainder is 74 after subtracting 516 from 590.
Since there are no more digits in the dividend, we add a zero to the remainder making it 740, and continue the process.

Moving on to step 11:
When dividing 740 by 129, we get 5 with a remainder of 95.
The next digit of our result is 5. 
Result so far: 316264.945
Subtracting 645 from 740 leaves us with 95.
Since there are no more digits in the dividend, we add a zero to the remainder making it 950, and continue the process.

Moving on to step 12:
If we divide 950 by 129, we get 7 and a remainder of 47.
Write down 7 as next digit of the result. 
Result so far: 316264.9457
Deduct 903 from 950 and we're left with 47.
Since there are no more digits in the dividend, we add a zero to the remainder making it 470, and continue the process.

On to step 13:
129 can be fit into 470 3 times, resulting in a remainder of 83.
Write down 3 as next digit of the result. 
Result so far: 316264.94573
Deduct 387 from 470 and we're left with 83.
Since there are no more digits in the dividend, we add a zero to the remainder making it 830, and continue the process.

Going ahead to step 14:
830 divided by 129 is 6 with a remainder of 56.
The number 6 becomes the next digit in our result. 
Result so far: 316264.945736
The remainder is 56 after subtracting 774 from 830.
Since there are no more digits in the dividend, we add a zero to the remainder making it 560, and continue the process.

On to step 15:
129 goes into 560 4 times with a remainder of 44.
The next digit of our result is 4. 
Result so far: 316264.9457364
Subtract 516 from 560 to get 44.
Since there are no more digits in the dividend, we add a zero to the remainder making it 440, and continue the process.

Let's proceed to step 16:
129 goes into 440 3 times with a remainder of 53.
Put 3 as the next digit of the answer. 
Result so far: 316264.94573643
Subtract 387 from 440 to get 53.
Since there are no more digits in the dividend, we add a zero to the remainder making it 530, and continue the process.

After the division, we end up with 316264.94573643 and a remainder of 5.3e-08.