508158 divided by 90 
Let's see how many times 90 fits into 508158.

Let's proceed to step 1:
5 divided by 90 is 0 with a remainder of 5.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we take 0 away from 5, we end up with 5.
Append the next digit (0) from the dividend to 5 and continue with: 50 / 90

On to step 2:
If we divide 50 by 90, we get 0 and a remainder of 50.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we take 0 away from 50, we end up with 50.
Bring next digit (8) of the dividend behind the 50 and repeat the process: 508 / 90

On to step 3:
When dividing 508 by 90, we get 5 with a remainder of 58.
The number 5 becomes the next digit in our result. 
Result so far: 5.0
The remainder is 58 after subtracting 450 from 508.
Include the next digit (1) from the dividend after 58, then repeat: 581 / 90

Advancing to step 4:
The number 90 fits into 581 6 times, leaving a remainder of 41.
Use 6 as the next digit of our solution. 
Result so far: 56.0
The remainder is 41 after subtracting 540 from 581.
Grab the next digit (5) from the dividend, add it to 41, then carry on: 415 / 90

On to step 5:
If we divide 415 by 90, we get 4 and a remainder of 55.
The number 4 becomes the next digit in our result. 
Result so far: 564.0
If we take 360 away from 415, we end up with 55.
Take the next digit (8) from the dividend and append it to 55, then repeat: 558 / 90

Advancing to step 6:
If we divide 558 by 90, we get 6 and a remainder of 18.
The number 6 becomes the next digit in our result. 
Result so far: 5646.0
Subtracting 540 from 558 leaves us with 18.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

Step 7:
180 divided by 90 is 2 with a remainder of 0.
Put 2 as the next digit of the answer. 
Result so far: 5646.2
If we subtract 180 from 180, we 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.

On to step 8:
90 can be fit into 0 0 times, resulting in a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 5646.2
If we subtract 0 from 0, we 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.

On to step 9:
0 divided by 90 is 0 with a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 5646.2
The remainder is 0 after subtracting 0 from 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

The final outcome is 5646.2, with a leftover of 0.0.