We're dividing 512317 by 9 
Let's see how many times 9 fits into 512317.

Step 1:
When dividing 5 by 9, we get 0 with a remainder of 5.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we take 0 away from 5, we end up with 5.
Fetch the next digit (1) from the dividend, attach it to 5 and continue: 51 / 9

Advancing to step 2:
9 can be fit into 51 5 times, resulting in a remainder of 6.
Record the quotient 5 as the next digit in the result. 
Result so far: 5.0
If we take 45 away from 51, we end up with 6.
Take the next digit (2) from the dividend and append it to 6, then repeat: 62 / 9

Step 3:
9 can be fit into 62 6 times, resulting in a remainder of 8.
Put 6 as the next digit of the answer. 
Result so far: 56.0
Deduct 54 from 62 and we're left with 8.
Append the next digit (3) from the dividend to 8 and continue with: 83 / 9

On to step 4:
When dividing 83 by 9, we get 9 with a remainder of 2.
Put 9 as the next digit of the answer. 
Result so far: 569.0
Subtracting 81 from 83 leaves us with 2.
Bring next digit (1) of the dividend behind the 2 and repeat the process: 21 / 9

Let's proceed to step 5:
9 goes into 21 2 times with a remainder of 3.
Put 2 as the next digit of the answer. 
Result so far: 5692.0
Deduct 18 from 21 and we're left with 3.
Include the next digit (7) from the dividend after 3, then repeat: 37 / 9

On to step 6:
9 can be fit into 37 4 times, resulting in a remainder of 1.
The number 4 becomes the next digit in our result. 
Result so far: 56924.0
If we subtract 36 from 37, we get 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Let's proceed to step 7:
When dividing 10 by 9, we get 1 with a remainder of 1.
Write down 1 as next digit of the result. 
Result so far: 56924.1
Deduct 9 from 10 and we're left with 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Advancing to step 8:
The number 9 fits into 10 1 times, leaving a remainder of 1.
Write down 1 as next digit of the result. 
Result so far: 56924.11
If we subtract 9 from 10, we get 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

The final outcome is 56924.11, with a leftover of 0.001.