Let's divide 40845052 by 334
Let's see how many times 334 fits into 40845052.

Advancing to step 1:
If we divide 4 by 334, we get 0 and a remainder of 4.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Deduct 0 from 4 and we're left with 4.
Fetch the next digit (0) from the dividend, attach it to 4 and continue: 40 / 334

Step 2:
334 can be fit into 40 0 times, resulting in a remainder of 40.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we take 0 away from 40, we end up with 40.
Include the next digit (8) from the dividend after 40, then repeat: 408 / 334

On to step 3:
If we divide 408 by 334, we get 1 and a remainder of 74.
Write down 1 as next digit of the result. 
Result so far: 1.0
Deduct 334 from 408 and we're left with 74.
Take the next digit (4) from the dividend and append it to 74, then repeat: 744 / 334

On to step 4:
334 can be fit into 744 2 times, resulting in a remainder of 76.
Put 2 as the next digit of the answer. 
Result so far: 12.0
If we subtract 668 from 744, we get 76.
Grab the next digit (5) from the dividend, add it to 76, then carry on: 765 / 334

Going ahead to step 5:
When dividing 765 by 334, we get 2 with a remainder of 97.
Put 2 as the next digit of the answer. 
Result so far: 122.0
Subtract 668 from 765 to get 97.
Fetch the next digit (0) from the dividend, attach it to 97 and continue: 970 / 334

Let's proceed to step 6:
334 can be fit into 970 2 times, resulting in a remainder of 302.
Write down 2 as next digit of the result. 
Result so far: 1222.0
If we take 668 away from 970, we end up with 302.
Take the next digit (5) from the dividend and append it to 302, then repeat: 3025 / 334

Let's proceed to step 7:
If we divide 3025 by 334, we get 9 and a remainder of 19.
The number 9 becomes the next digit in our result. 
Result so far: 12229.0
Subtracting 3006 from 3025 leaves us with 19.
Grab the next digit (2) from the dividend, add it to 19, then carry on: 192 / 334

Advancing to step 8:
334 can be fit into 192 0 times, resulting in a remainder of 192.
Write down 0 as next digit of the result. 
Result so far: 122290.0
Subtract 0 from 192 to get 192.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1920, and continue the process.

Moving on to step 9:
1920 divided by 334 is 5 with a remainder of 250.
The number 5 becomes the next digit in our result. 
Result so far: 122290.5
Subtracting 1670 from 1920 leaves us with 250.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2500, and continue the process.

On to step 10:
334 goes into 2500 7 times with a remainder of 162.
Write down 7 as next digit of the result. 
Result so far: 122290.57
Subtracting 2338 from 2500 leaves us with 162.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1620, and continue the process.

Going ahead to step 11:
If we divide 1620 by 334, we get 4 and a remainder of 284.
The number 4 becomes the next digit in our result. 
Result so far: 122290.574
Subtract 1336 from 1620 to get 284.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2840, and continue the process.

Advancing to step 12:
If we divide 2840 by 334, we get 8 and a remainder of 168.
The next digit of our result is 8. 
Result so far: 122290.5748
Deduct 2672 from 2840 and we're left with 168.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1680, and continue the process.

Step 13:
If we divide 1680 by 334, we get 5 and a remainder of 10.
The next digit of our result is 5. 
Result so far: 122290.57485
If we take 1670 away from 1680, we end up with 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

On to step 14:
334 goes into 100 0 times with a remainder of 100.
The number 0 becomes the next digit in our result. 
Result so far: 122290.57485
Deduct 0 from 100 and we're left with 100.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1000, and continue the process.

Step 15:
If we divide 1000 by 334, we get 2 and a remainder of 332.
Use 2 as the next digit of our solution. 
Result so far: 122290.5748502
The remainder is 332 after subtracting 668 from 1000.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3320, and continue the process.

Moving on to step 16:
If we divide 3320 by 334, we get 9 and a remainder of 314.
The next digit of our result is 9. 
Result so far: 122290.57485029
If we take 3006 away from 3320, we end up with 314.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3140, and continue the process.

The final outcome is 122290.57485029, with a leftover of 3.14e-07.