We divide 40627834 by 158
We're looking to find how many times 158 goes into 40627834.

Step 1:
158 goes into 4 0 times with a remainder of 4.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we take 0 away from 4, we end up with 4.
Fetch the next digit (0) from the dividend, attach it to 4 and continue: 40 / 158

Step 2:
When dividing 40 by 158, we get 0 with a remainder of 40.
Write down 0 as next digit of the result. 
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 / 158

On to step 3:
406 divided by 158 is 2 with a remainder of 90.
The number 2 becomes the next digit in our result. 
Result so far: 2.0
Deduct 316 from 406 and we're left with 90.
Grab the next digit (2) from the dividend, add it to 90, then carry on: 902 / 158

Advancing to step 4:
158 can be fit into 902 5 times, resulting in a remainder of 112.
Use 5 as the next digit of our solution. 
Result so far: 25.0
If we take 790 away from 902, we end up with 112.
Fetch the next digit (7) from the dividend, attach it to 112 and continue: 1127 / 158

Moving on to step 5:
When dividing 1127 by 158, we get 7 with a remainder of 21.
Record the quotient 7 as the next digit in the result. 
Result so far: 257.0
The remainder is 21 after subtracting 1106 from 1127.
Include the next digit (8) from the dividend after 21, then repeat: 218 / 158

On to step 6:
158 goes into 218 1 times with a remainder of 60.
Put 1 as the next digit of the answer. 
Result so far: 2571.0
If we subtract 158 from 218, we get 60.
Include the next digit (3) from the dividend after 60, then repeat: 603 / 158

Step 7:
The number 158 fits into 603 3 times, leaving a remainder of 129.
Use 3 as the next digit of our solution. 
Result so far: 25713.0
Subtracting 474 from 603 leaves us with 129.
Grab the next digit (4) from the dividend, add it to 129, then carry on: 1294 / 158

Let's proceed to step 8:
When dividing 1294 by 158, we get 8 with a remainder of 30.
Write down 8 as next digit of the result. 
Result so far: 257138.0
Subtracting 1264 from 1294 leaves us with 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Moving on to step 9:
300 divided by 158 is 1 with a remainder of 142.
Write down 1 as next digit of the result. 
Result so far: 257138.1
If we subtract 158 from 300, we 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.

Let's proceed to step 10:
If we divide 1420 by 158, we get 8 and a remainder of 156.
The number 8 becomes the next digit in our result. 
Result so far: 257138.18
The remainder is 156 after subtracting 1264 from 1420.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1560, and continue the process.

Advancing to step 11:
1560 divided by 158 is 9 with a remainder of 138.
Record the quotient 9 as the next digit in the result. 
Result so far: 257138.189
Subtract 1422 from 1560 to get 138.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1380, and continue the process.

Advancing to step 12:
When dividing 1380 by 158, we get 8 with a remainder of 116.
Write down 8 as next digit of the result. 
Result so far: 257138.1898
Subtracting 1264 from 1380 leaves us with 116.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1160, and continue the process.

Moving on to step 13:
158 goes into 1160 7 times with a remainder of 54.
Write down 7 as next digit of the result. 
Result so far: 257138.18987
The remainder is 54 after subtracting 1106 from 1160.
Since there are no more digits in the dividend, we add a zero to the remainder making it 540, and continue the process.

On to step 14:
The number 158 fits into 540 3 times, leaving a remainder of 66.
Use 3 as the next digit of our solution. 
Result so far: 257138.189873
Subtracting 474 from 540 leaves us with 66.
Since there are no more digits in the dividend, we add a zero to the remainder making it 660, and continue the process.

Advancing to step 15:
The number 158 fits into 660 4 times, leaving a remainder of 28.
The next digit of our result is 4. 
Result so far: 257138.1898734
If we subtract 632 from 660, we get 28.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

On to step 16:
158 can be fit into 280 1 times, resulting in a remainder of 122.
The number 1 becomes the next digit in our result. 
Result so far: 257138.18987341
Subtract 158 from 280 to get 122.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1220, and continue the process.

In conclusion, the division gives 257138.18987341 with a balance of 1.22e-07.