Let's divide 80645985 by 158
We want to divide 80645985 by 158.

Moving on to step 1:
The number 158 fits into 8 0 times, leaving a remainder of 8.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtract 0 from 8 to get 8.
Take the next digit (0) from the dividend and append it to 8, then repeat: 80 / 158

Going ahead to step 2:
80 divided by 158 is 0 with a remainder of 80.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtract 0 from 80 to get 80.
Grab the next digit (6) from the dividend, add it to 80, then carry on: 806 / 158

Advancing to step 3:
158 can be fit into 806 5 times, resulting in a remainder of 16.
Use 5 as the next digit of our solution. 
Result so far: 5.0
Subtract 790 from 806 to get 16.
Take the next digit (4) from the dividend and append it to 16, then repeat: 164 / 158

Moving on to step 4:
The number 158 fits into 164 1 times, leaving a remainder of 6.
The number 1 becomes the next digit in our result. 
Result so far: 51.0
Subtracting 158 from 164 leaves us with 6.
Grab the next digit (5) from the dividend, add it to 6, then carry on: 65 / 158

Moving on to step 5:
158 goes into 65 0 times with a remainder of 65.
Write down 0 as next digit of the result. 
Result so far: 510.0
If we take 0 away from 65, we end up with 65.
Append the next digit (9) from the dividend to 65 and continue with: 659 / 158

Let's proceed to step 6:
158 can be fit into 659 4 times, resulting in a remainder of 27.
Use 4 as the next digit of our solution. 
Result so far: 5104.0
The remainder is 27 after subtracting 632 from 659.
Bring next digit (8) of the dividend behind the 27 and repeat the process: 278 / 158

Going ahead to step 7:
The number 158 fits into 278 1 times, leaving a remainder of 120.
Write down 1 as next digit of the result. 
Result so far: 51041.0
Deduct 158 from 278 and we're left with 120.
Bring next digit (5) of the dividend behind the 120 and repeat the process: 1205 / 158

Advancing to step 8:
1205 divided by 158 is 7 with a remainder of 99.
Write down 7 as next digit of the result. 
Result so far: 510417.0
The remainder is 99 after subtracting 1106 from 1205.
Since there are no more digits in the dividend, we add a zero to the remainder making it 990, and continue the process.

Going ahead to step 9:
158 goes into 990 6 times with a remainder of 42.
Put 6 as the next digit of the answer. 
Result so far: 510417.6
If we take 948 away from 990, we end up with 42.
Since there are no more digits in the dividend, we add a zero to the remainder making it 420, and continue the process.

Going ahead to step 10:
When dividing 420 by 158, we get 2 with a remainder of 104.
The number 2 becomes the next digit in our result. 
Result so far: 510417.62
The remainder is 104 after subtracting 316 from 420.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1040, and continue the process.

Advancing to step 11:
158 can be fit into 1040 6 times, resulting in a remainder of 92.
The number 6 becomes the next digit in our result. 
Result so far: 510417.626
Subtract 948 from 1040 to get 92.
Since there are no more digits in the dividend, we add a zero to the remainder making it 920, and continue the process.

Moving on to step 12:
When dividing 920 by 158, we get 5 with a remainder of 130.
Put 5 as the next digit of the answer. 
Result so far: 510417.6265
Subtracting 790 from 920 leaves us with 130.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1300, and continue the process.

Going ahead to step 13:
1300 divided by 158 is 8 with a remainder of 36.
Put 8 as the next digit of the answer. 
Result so far: 510417.62658
Subtracting 1264 from 1300 leaves us with 36.
Since there are no more digits in the dividend, we add a zero to the remainder making it 360, and continue the process.

Going ahead to step 14:
360 divided by 158 is 2 with a remainder of 44.
Write down 2 as next digit of the result. 
Result so far: 510417.626582
If we take 316 away from 360, we end up with 44.
Since there are no more digits in the dividend, we add a zero to the remainder making it 440, and continue the process.

Let's proceed to step 15:
The number 158 fits into 440 2 times, leaving a remainder of 124.
Use 2 as the next digit of our solution. 
Result so far: 510417.6265822
Deduct 316 from 440 and we're left with 124.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1240, and continue the process.

After the division, we end up with 510417.6265822 and a remainder of 1.24e-06.