We divide 123158 by 45
We're looking to find how many times 45 goes into 123158.

Moving on to step 1:
1 divided by 45 is 0 with a remainder of 1.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we subtract 0 from 1, we get 1.
Include the next digit (2) from the dividend after 1, then repeat: 12 / 45

On to step 2:
The number 45 fits into 12 0 times, leaving a remainder of 12.
The next digit of our result is 0. 
Result so far: 0.0
Subtract 0 from 12 to get 12.
Bring next digit (3) of the dividend behind the 12 and repeat the process: 123 / 45

Moving on to step 3:
When dividing 123 by 45, we get 2 with a remainder of 33.
Put 2 as the next digit of the answer. 
Result so far: 2.0
The remainder is 33 after subtracting 90 from 123.
Include the next digit (1) from the dividend after 33, then repeat: 331 / 45

Step 4:
If we divide 331 by 45, we get 7 and a remainder of 16.
Put 7 as the next digit of the answer. 
Result so far: 27.0
Subtracting 315 from 331 leaves us with 16.
Fetch the next digit (5) from the dividend, attach it to 16 and continue: 165 / 45

Moving on to step 5:
If we divide 165 by 45, we get 3 and a remainder of 30.
Put 3 as the next digit of the answer. 
Result so far: 273.0
The remainder is 30 after subtracting 135 from 165.
Append the next digit (8) from the dividend to 30 and continue with: 308 / 45

On to step 6:
When dividing 308 by 45, we get 6 with a remainder of 38.
Record the quotient 6 as the next digit in the result. 
Result so far: 2736.0
If we subtract 270 from 308, we get 38.
Since there are no more digits in the dividend, we add a zero to the remainder making it 380, and continue the process.

Step 7:
If we divide 380 by 45, we get 8 and a remainder of 20.
Use 8 as the next digit of our solution. 
Result so far: 2736.8
Subtracting 360 from 380 leaves us with 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Advancing to step 8:
When dividing 200 by 45, we get 4 with a remainder of 20.
Put 4 as the next digit of the answer. 
Result so far: 2736.84
Deduct 180 from 200 and we're left with 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

On to step 9:
The number 45 fits into 200 4 times, leaving a remainder of 20.
The next digit of our result is 4. 
Result so far: 2736.844
Subtract 180 from 200 to get 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

After the division, we end up with 2736.844 and a remainder of 0.002.