Let's divide 40627159 by 345
We're looking to find how many times 345 goes into 40627159.

On to step 1:
If we divide 4 by 345, we get 0 and a remainder of 4.
Write down 0 as next digit of the result. 
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 / 345

Going ahead to step 2:
345 can be fit into 40 0 times, resulting in a remainder of 40.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
The remainder is 40 after subtracting 0 from 40.
Bring next digit (6) of the dividend behind the 40 and repeat the process: 406 / 345

Step 3:
345 goes into 406 1 times with a remainder of 61.
The next digit of our result is 1. 
Result so far: 1.0
Deduct 345 from 406 and we're left with 61.
Grab the next digit (2) from the dividend, add it to 61, then carry on: 612 / 345

On to step 4:
345 can be fit into 612 1 times, resulting in a remainder of 267.
Record the quotient 1 as the next digit in the result. 
Result so far: 11.0
The remainder is 267 after subtracting 345 from 612.
Grab the next digit (7) from the dividend, add it to 267, then carry on: 2677 / 345

Advancing to step 5:
When dividing 2677 by 345, we get 7 with a remainder of 262.
Record the quotient 7 as the next digit in the result. 
Result so far: 117.0
If we take 2415 away from 2677, we end up with 262.
Bring next digit (1) of the dividend behind the 262 and repeat the process: 2621 / 345

On to step 6:
345 goes into 2621 7 times with a remainder of 206.
Write down 7 as next digit of the result. 
Result so far: 1177.0
Deduct 2415 from 2621 and we're left with 206.
Append the next digit (5) from the dividend to 206 and continue with: 2065 / 345

Let's proceed to step 7:
345 goes into 2065 5 times with a remainder of 340.
The number 5 becomes the next digit in our result. 
Result so far: 11775.0
If we subtract 1725 from 2065, we get 340.
Append the next digit (9) from the dividend to 340 and continue with: 3409 / 345

On to step 8:
When dividing 3409 by 345, we get 9 with a remainder of 304.
Record the quotient 9 as the next digit in the result. 
Result so far: 117759.0
If we subtract 3105 from 3409, we get 304.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3040, and continue the process.

On to step 9:
345 goes into 3040 8 times with a remainder of 280.
The next digit of our result is 8. 
Result so far: 117759.8
If we take 2760 away from 3040, we end up with 280.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2800, and continue the process.

Step 10:
2800 divided by 345 is 8 with a remainder of 40.
Put 8 as the next digit of the answer. 
Result so far: 117759.88
Subtract 2760 from 2800 to get 40.
Since there are no more digits in the dividend, we add a zero to the remainder making it 400, and continue the process.

The final outcome is 117759.88, with a leftover of 0.04.