We look at the division of 501158 by 10 
Our goal is to divide 501158 by 10.

On to step 1:
When dividing 5 by 10, we get 0 with a remainder of 5.
Write down 0 as next digit of the result. 
Result so far: 0.0
Deduct 0 from 5 and we're left with 5.
Take the next digit (0) from the dividend and append it to 5, then repeat: 50 / 10

Let's proceed to step 2:
If we divide 50 by 10, we get 5 and a remainder of 0.
Use 5 as the next digit of our solution. 
Result so far: 5.0
Subtract 50 from 50 to get 0.
Take the next digit (1) from the dividend and append it to 0, then repeat: 1 / 10

Advancing to step 3:
10 goes into 1 0 times with a remainder of 1.
Write down 0 as next digit of the result. 
Result so far: 50.0
Subtract 0 from 1 to get 1.
Take the next digit (1) from the dividend and append it to 1, then repeat: 11 / 10

Going ahead to step 4:
If we divide 11 by 10, we get 1 and a remainder of 1.
Record the quotient 1 as the next digit in the result. 
Result so far: 501.0
The remainder is 1 after subtracting 10 from 11.
Take the next digit (5) from the dividend and append it to 1, then repeat: 15 / 10

Going ahead to step 5:
10 can be fit into 15 1 times, resulting in a remainder of 5.
Record the quotient 1 as the next digit in the result. 
Result so far: 5011.0
Subtracting 10 from 15 leaves us with 5.
Bring next digit (8) of the dividend behind the 5 and repeat the process: 58 / 10

Advancing to step 6:
10 goes into 58 5 times with a remainder of 8.
Put 5 as the next digit of the answer. 
Result so far: 50115.0
The remainder is 8 after subtracting 50 from 58.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

On to step 7:
10 can be fit into 80 8 times, resulting in a remainder of 0.
The number 8 becomes the next digit in our result. 
Result so far: 50115.8
Subtract 80 from 80 to get 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Step 8:
When dividing 0 by 10, we get 0 with a remainder of 0.
The next digit of our result is 0. 
Result so far: 50115.8
If we take 0 away from 0, we end up with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

On to step 9:
10 goes into 0 0 times with a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 50115.8
Subtracting 0 from 0 leaves us with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

In conclusion, the division gives 50115.8 with a balance of 0.0.