Let's divide 40799348 by 842
Our goal is to divide 40799348 by 842.

On to step 1:
842 goes into 4 0 times with a remainder of 4.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtracting 0 from 4 leaves us with 4.
Take the next digit (0) from the dividend and append it to 4, then repeat: 40 / 842

Advancing to step 2:
842 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
If we subtract 0 from 40, we get 40.
Take the next digit (7) from the dividend and append it to 40, then repeat: 407 / 842

On to step 3:
407 divided by 842 is 0 with a remainder of 407.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtracting 0 from 407 leaves us with 407.
Take the next digit (9) from the dividend and append it to 407, then repeat: 4079 / 842

On to step 4:
842 goes into 4079 4 times with a remainder of 711.
The next digit of our result is 4. 
Result so far: 4.0
If we subtract 3368 from 4079, we get 711.
Grab the next digit (9) from the dividend, add it to 711, then carry on: 7119 / 842

Moving on to step 5:
The number 842 fits into 7119 8 times, leaving a remainder of 383.
The next digit of our result is 8. 
Result so far: 48.0
If we subtract 6736 from 7119, we get 383.
Grab the next digit (3) from the dividend, add it to 383, then carry on: 3833 / 842

Moving on to step 6:
842 goes into 3833 4 times with a remainder of 465.
The number 4 becomes the next digit in our result. 
Result so far: 484.0
Subtracting 3368 from 3833 leaves us with 465.
Fetch the next digit (4) from the dividend, attach it to 465 and continue: 4654 / 842

Advancing to step 7:
4654 divided by 842 is 5 with a remainder of 444.
Use 5 as the next digit of our solution. 
Result so far: 4845.0
If we take 4210 away from 4654, we end up with 444.
Grab the next digit (8) from the dividend, add it to 444, then carry on: 4448 / 842

Moving on to step 8:
842 goes into 4448 5 times with a remainder of 238.
The next digit of our result is 5. 
Result so far: 48455.0
If we take 4210 away from 4448, 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.

Moving on to step 9:
When dividing 2380 by 842, we get 2 with a remainder of 696.
Write down 2 as next digit of the result. 
Result so far: 48455.2
If we subtract 1684 from 2380, we get 696.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6960, and continue the process.

Moving on to step 10:
6960 divided by 842 is 8 with a remainder of 224.
Use 8 as the next digit of our solution. 
Result so far: 48455.28
The remainder is 224 after subtracting 6736 from 6960.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2240, and continue the process.

Going ahead to step 11:
The number 842 fits into 2240 2 times, leaving a remainder of 556.
Use 2 as the next digit of our solution. 
Result so far: 48455.282
Subtracting 1684 from 2240 leaves us with 556.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5560, and continue the process.

Moving on to step 12:
When dividing 5560 by 842, we get 6 with a remainder of 508.
The number 6 becomes the next digit in our result. 
Result so far: 48455.2826
Deduct 5052 from 5560 and we're left with 508.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5080, and continue the process.

Let's proceed to step 13:
5080 divided by 842 is 6 with a remainder of 28.
The number 6 becomes the next digit in our result. 
Result so far: 48455.28266
If we take 5052 away from 5080, we end up with 28.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

The final outcome is 48455.28266, with a leftover of 2.8e-05.