Let's divide 50176171 by 158
Let's see how many times 158 fits into 50176171.

Advancing to step 1:
When dividing 5 by 158, we get 0 with a remainder of 5.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Subtracting 0 from 5 leaves us with 5.
Take the next digit (0) from the dividend and append it to 5, then repeat: 50 / 158

On to step 2:
The number 158 fits into 50 0 times, leaving a remainder of 50.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtracting 0 from 50 leaves us with 50.
Fetch the next digit (1) from the dividend, attach it to 50 and continue: 501 / 158

Going ahead to step 3:
158 goes into 501 3 times with a remainder of 27.
The next digit of our result is 3. 
Result so far: 3.0
If we subtract 474 from 501, we get 27.
Take the next digit (7) from the dividend and append it to 27, then repeat: 277 / 158

On to step 4:
158 goes into 277 1 times with a remainder of 119.
The number 1 becomes the next digit in our result. 
Result so far: 31.0
Deduct 158 from 277 and we're left with 119.
Grab the next digit (6) from the dividend, add it to 119, then carry on: 1196 / 158

Going ahead to step 5:
1196 divided by 158 is 7 with a remainder of 90.
Record the quotient 7 as the next digit in the result. 
Result so far: 317.0
If we subtract 1106 from 1196, we get 90.
Grab the next digit (1) from the dividend, add it to 90, then carry on: 901 / 158

Step 6:
158 goes into 901 5 times with a remainder of 111.
The next digit of our result is 5. 
Result so far: 3175.0
Subtract 790 from 901 to get 111.
Append the next digit (7) from the dividend to 111 and continue with: 1117 / 158

On to step 7:
158 can be fit into 1117 7 times, resulting in a remainder of 11.
Write down 7 as next digit of the result. 
Result so far: 31757.0
Deduct 1106 from 1117 and we're left with 11.
Take the next digit (1) from the dividend and append it to 11, then repeat: 111 / 158

Step 8:
158 goes into 111 0 times with a remainder of 111.
The next digit of our result is 0. 
Result so far: 317570.0
If we take 0 away from 111, we end up with 111.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1110, and continue the process.

On to step 9:
158 goes into 1110 7 times with a remainder of 4.
The number 7 becomes the next digit in our result. 
Result so far: 317570.7
If we take 1106 away from 1110, we end up with 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Moving on to step 10:
158 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: 317570.7
If we subtract 0 from 40, we 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.

Going ahead to step 11:
158 goes into 400 2 times with a remainder of 84.
Put 2 as the next digit of the answer. 
Result so far: 317570.702
The remainder is 84 after subtracting 316 from 400.
Since there are no more digits in the dividend, we add a zero to the remainder making it 840, and continue the process.

Step 12:
If we divide 840 by 158, we get 5 and a remainder of 50.
Write down 5 as next digit of the result. 
Result so far: 317570.7025
If we take 790 away from 840, we end up with 50.
Since there are no more digits in the dividend, we add a zero to the remainder making it 500, and continue the process.

Step 13:
When dividing 500 by 158, we get 3 with a remainder of 26.
The next digit of our result is 3. 
Result so far: 317570.70253
Deduct 474 from 500 and we're left with 26.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

On to step 14:
When dividing 260 by 158, we get 1 with a remainder of 102.
The next digit of our result is 1. 
Result so far: 317570.702531
Subtracting 158 from 260 leaves us with 102.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1020, and continue the process.

Let's proceed to step 15:
158 goes into 1020 6 times with a remainder of 72.
Record the quotient 6 as the next digit in the result. 
Result so far: 317570.7025316
Subtract 948 from 1020 to get 72.
Since there are no more digits in the dividend, we add a zero to the remainder making it 720, and continue the process.

On to step 16:
The number 158 fits into 720 4 times, leaving a remainder of 88.
The number 4 becomes the next digit in our result. 
Result so far: 317570.70253164
The remainder is 88 after subtracting 632 from 720.
Since there are no more digits in the dividend, we add a zero to the remainder making it 880, and continue the process.

After the division, we end up with 317570.70253164 and a remainder of 8.8e-08.