40154819 divided by 158 
Let's see how many times 158 fits into 40154819.

Advancing to step 1:
When dividing 4 by 158, we get 0 with a remainder of 4.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we take 0 away from 4, we end up with 4.
Append the next digit (0) from the dividend to 4 and continue with: 40 / 158

Step 2:
The number 158 fits into 40 0 times, leaving 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.
Fetch the next digit (1) from the dividend, attach it to 40 and continue: 401 / 158

Let's proceed to step 3:
401 divided by 158 is 2 with a remainder of 85.
The next digit of our result is 2. 
Result so far: 2.0
Deduct 316 from 401 and we're left with 85.
Include the next digit (5) from the dividend after 85, then repeat: 855 / 158

Going ahead to step 4:
855 divided by 158 is 5 with a remainder of 65.
Put 5 as the next digit of the answer. 
Result so far: 25.0
The remainder is 65 after subtracting 790 from 855.
Include the next digit (4) from the dividend after 65, then repeat: 654 / 158

Moving on to step 5:
When dividing 654 by 158, we get 4 with a remainder of 22.
Use 4 as the next digit of our solution. 
Result so far: 254.0
If we take 632 away from 654, we end up with 22.
Fetch the next digit (8) from the dividend, attach it to 22 and continue: 228 / 158

Moving on to step 6:
228 divided by 158 is 1 with a remainder of 70.
Write down 1 as next digit of the result. 
Result so far: 2541.0
If we take 158 away from 228, we end up with 70.
Fetch the next digit (1) from the dividend, attach it to 70 and continue: 701 / 158

Let's proceed to step 7:
701 divided by 158 is 4 with a remainder of 69.
Put 4 as the next digit of the answer. 
Result so far: 25414.0
If we subtract 632 from 701, we get 69.
Take the next digit (9) from the dividend and append it to 69, then repeat: 699 / 158

Going ahead to step 8:
The number 158 fits into 699 4 times, leaving a remainder of 67.
Record the quotient 4 as the next digit in the result. 
Result so far: 254144.0
If we take 632 away from 699, we end up with 67.
Since there are no more digits in the dividend, we add a zero to the remainder making it 670, and continue the process.

Moving on to step 9:
The number 158 fits into 670 4 times, leaving a remainder of 38.
Put 4 as the next digit of the answer. 
Result so far: 254144.4
Deduct 632 from 670 and we're left with 38.
Since there are no more digits in the dividend, we add a zero to the remainder making it 380, and continue the process.

On to step 10:
If we divide 380 by 158, we get 2 and a remainder of 64.
Record the quotient 2 as the next digit in the result. 
Result so far: 254144.42
If we take 316 away from 380, we end up with 64.
Since there are no more digits in the dividend, we add a zero to the remainder making it 640, and continue the process.

Step 11:
The number 158 fits into 640 4 times, leaving a remainder of 8.
The next digit of our result is 4. 
Result so far: 254144.424
If we subtract 632 from 640, we get 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Advancing to step 12:
If we divide 80 by 158, we get 0 and a remainder of 80.
Use 0 as the next digit of our solution. 
Result so far: 254144.424
The remainder is 80 after subtracting 0 from 80.
Since there are no more digits in the dividend, we add a zero to the remainder making it 800, and continue the process.

On to step 13:
158 goes into 800 5 times with a remainder of 10.
Record the quotient 5 as the next digit in the result. 
Result so far: 254144.42405
The remainder is 10 after subtracting 790 from 800.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Advancing to step 14:
158 can be fit into 100 0 times, resulting in a remainder of 100.
Record the quotient 0 as the next digit in the result. 
Result so far: 254144.42405
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.

Going ahead to step 15:
When dividing 1000 by 158, we get 6 with a remainder of 52.
Write down 6 as next digit of the result. 
Result so far: 254144.4240506
If we take 948 away from 1000, we end up with 52.
Since there are no more digits in the dividend, we add a zero to the remainder making it 520, and continue the process.

On to step 16:
The number 158 fits into 520 3 times, leaving a remainder of 46.
The number 3 becomes the next digit in our result. 
Result so far: 254144.42405063
If we subtract 474 from 520, we get 46.
Since there are no more digits in the dividend, we add a zero to the remainder making it 460, and continue the process.

The quotient of the division is 254144.42405063, and the remainder is 4.6e-08.