We look at the division of 40645322 by 349 
We want to divide 40645322 by 349.

Advancing to step 1:
349 can be fit into 4 0 times, resulting in a remainder of 4.
The next digit of our result is 0. 
Result so far: 0.0
The remainder is 4 after subtracting 0 from 4.
Grab the next digit (0) from the dividend, add it to 4, then carry on: 40 / 349

On to step 2:
When dividing 40 by 349, we get 0 with a remainder of 40.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we subtract 0 from 40, we get 40.
Include the next digit (6) from the dividend after 40, then repeat: 406 / 349

Advancing to step 3:
349 goes into 406 1 times with a remainder of 57.
Put 1 as the next digit of the answer. 
Result so far: 1.0
The remainder is 57 after subtracting 349 from 406.
Include the next digit (4) from the dividend after 57, then repeat: 574 / 349

Moving on to step 4:
349 goes into 574 1 times with a remainder of 225.
The next digit of our result is 1. 
Result so far: 11.0
Subtracting 349 from 574 leaves us with 225.
Bring next digit (5) of the dividend behind the 225 and repeat the process: 2255 / 349

Let's proceed to step 5:
349 can be fit into 2255 6 times, resulting in a remainder of 161.
Write down 6 as next digit of the result. 
Result so far: 116.0
Subtracting 2094 from 2255 leaves us with 161.
Grab the next digit (3) from the dividend, add it to 161, then carry on: 1613 / 349

Advancing to step 6:
1613 divided by 349 is 4 with a remainder of 217.
The number 4 becomes the next digit in our result. 
Result so far: 1164.0
If we take 1396 away from 1613, we end up with 217.
Include the next digit (2) from the dividend after 217, then repeat: 2172 / 349

On to step 7:
The number 349 fits into 2172 6 times, leaving a remainder of 78.
Write down 6 as next digit of the result. 
Result so far: 11646.0
If we take 2094 away from 2172, we end up with 78.
Include the next digit (2) from the dividend after 78, then repeat: 782 / 349

Going ahead to step 8:
If we divide 782 by 349, we get 2 and a remainder of 84.
Write down 2 as next digit of the result. 
Result so far: 116462.0
Deduct 698 from 782 and we're left with 84.
Since there are no more digits in the dividend, we add a zero to the remainder making it 840, and continue the process.

Moving on to step 9:
If we divide 840 by 349, we get 2 and a remainder of 142.
The next digit of our result is 2. 
Result so far: 116462.2
Subtract 698 from 840 to get 142.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1420, and continue the process.

Advancing to step 10:
349 can be fit into 1420 4 times, resulting in a remainder of 24.
Put 4 as the next digit of the answer. 
Result so far: 116462.24
The remainder is 24 after subtracting 1396 from 1420.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

Advancing to step 11:
240 divided by 349 is 0 with a remainder of 240.
The next digit of our result is 0. 
Result so far: 116462.24
If we take 0 away from 240, we end up with 240.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2400, and continue the process.

Going ahead to step 12:
2400 divided by 349 is 6 with a remainder of 306.
Put 6 as the next digit of the answer. 
Result so far: 116462.2406
Subtracting 2094 from 2400 leaves us with 306.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3060, and continue the process.

Advancing to step 13:
349 goes into 3060 8 times with a remainder of 268.
Record the quotient 8 as the next digit in the result. 
Result so far: 116462.24068
If we subtract 2792 from 3060, we get 268.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2680, and continue the process.

Let's proceed to step 14:
The number 349 fits into 2680 7 times, leaving a remainder of 237.
Record the quotient 7 as the next digit in the result. 
Result so far: 116462.240687
Subtract 2443 from 2680 to get 237.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2370, and continue the process.

Step 15:
349 can be fit into 2370 6 times, resulting in a remainder of 276.
Record the quotient 6 as the next digit in the result. 
Result so far: 116462.2406876
Deduct 2094 from 2370 and we're left with 276.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2760, and continue the process.

Step 16:
The number 349 fits into 2760 7 times, leaving a remainder of 317.
The next digit of our result is 7. 
Result so far: 116462.24068767
Deduct 2443 from 2760 and we're left with 317.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3170, and continue the process.

The final outcome is 116462.24068767, with a leftover of 3.17e-07.