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

Let's proceed to step 1:
When dividing 5 by 45, we get 0 with a remainder of 5.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we take 0 away from 5, we end up with 5.
Take the next digit (8) from the dividend and append it to 5, then repeat: 58 / 45

Moving on to step 2:
45 can be fit into 58 1 times, resulting in a remainder of 13.
Use 1 as the next digit of our solution. 
Result so far: 1.0
If we subtract 45 from 58, we get 13.
Take the next digit (6) from the dividend and append it to 13, then repeat: 136 / 45

Let's proceed to step 3:
45 can be fit into 136 3 times, resulting in a remainder of 1.
Put 3 as the next digit of the answer. 
Result so far: 13.0
If we take 135 away from 136, we end up with 1.
Include the next digit (7) from the dividend after 1, then repeat: 17 / 45

On to step 4:
The number 45 fits into 17 0 times, leaving a remainder of 17.
Write down 0 as next digit of the result. 
Result so far: 130.0
If we take 0 away from 17, we end up with 17.
Append the next digit (9) from the dividend to 17 and continue with: 179 / 45

Let's proceed to step 5:
If we divide 179 by 45, we get 3 and a remainder of 44.
Put 3 as the next digit of the answer. 
Result so far: 1303.0
If we subtract 135 from 179, we get 44.
Grab the next digit (0) from the dividend, add it to 44, then carry on: 440 / 45

Moving on to step 6:
If we divide 440 by 45, we get 9 and a remainder of 35.
Use 9 as the next digit of our solution. 
Result so far: 13039.0
Subtracting 405 from 440 leaves us with 35.
Since there are no more digits in the dividend, we add a zero to the remainder making it 350, and continue the process.

Step 7:
When dividing 350 by 45, we get 7 with a remainder of 35.
The number 7 becomes the next digit in our result. 
Result so far: 13039.7
The remainder is 35 after subtracting 315 from 350.
Since there are no more digits in the dividend, we add a zero to the remainder making it 350, and continue the process.

Advancing to step 8:
If we divide 350 by 45, we get 7 and a remainder of 35.
Use 7 as the next digit of our solution. 
Result so far: 13039.77
Subtract 315 from 350 to get 35.
Since there are no more digits in the dividend, we add a zero to the remainder making it 350, and continue the process.

After the division, we end up with 13039.77 and a remainder of 0.035.