I am trying to divide a number in a float:
float num = 9/5
but this gives me 1.0 when it should give me 1.8.
I've tried using a double in case it is a problem with the precision but it still gives me the same error. Is there anyway for me to get the write answer?