We're dividing 585974 by 90 
Our goal is to divide 585974 by 90.

Let's proceed to step 1:
90 goes into 5 0 times with a remainder of 5.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we take 0 away from 5, we end up with 5.
Append the next digit (8) from the dividend to 5 and continue with: 58 / 90

Let's proceed to step 2:
The number 90 fits into 58 0 times, leaving a remainder of 58.
Use 0 as the next digit of our solution. 
Result so far: 0.0
The remainder is 58 after subtracting 0 from 58.
Bring next digit (5) of the dividend behind the 58 and repeat the process: 585 / 90

Let's proceed to step 3:
The number 90 fits into 585 6 times, leaving a remainder of 45.
Put 6 as the next digit of the answer. 
Result so far: 6.0
Deduct 540 from 585 and we're left with 45.
Append the next digit (9) from the dividend to 45 and continue with: 459 / 90

Let's proceed to step 4:
If we divide 459 by 90, we get 5 and a remainder of 9.
Use 5 as the next digit of our solution. 
Result so far: 65.0
If we take 450 away from 459, we end up with 9.
Bring next digit (7) of the dividend behind the 9 and repeat the process: 97 / 90

Let's proceed to step 5:
90 can be fit into 97 1 times, resulting in a remainder of 7.
Write down 1 as next digit of the result. 
Result so far: 651.0
The remainder is 7 after subtracting 90 from 97.
Fetch the next digit (4) from the dividend, attach it to 7 and continue: 74 / 90

Step 6:
90 can be fit into 74 0 times, resulting in a remainder of 74.
Record the quotient 0 as the next digit in the result. 
Result so far: 6510.0
The remainder is 74 after subtracting 0 from 74.
Since there are no more digits in the dividend, we add a zero to the remainder making it 740, and continue the process.

Going ahead to step 7:
740 divided by 90 is 8 with a remainder of 20.
Put 8 as the next digit of the answer. 
Result so far: 6510.8
Deduct 720 from 740 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.

Step 8:
90 goes into 200 2 times with a remainder of 20.
Put 2 as the next digit of the answer. 
Result so far: 6510.82
Subtracting 180 from 200 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.

Step 9:
If we divide 200 by 90, we get 2 and a remainder of 20.
The next digit of our result is 2. 
Result so far: 6510.822
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.

The final result is 6510.822 with a remainder of 0.002.