Assuming you mean 4x-2y=0, you can first divide by the greatest common factor of 4 and 2 and get 2x-y=0.
Then, you can move the y over to the other side to get 2x=y. Therefore, the slope is just 2.