Using floats in conditional statements
I have found that I am unable to use floats in conditional statements. I wish to compare two float values, one of which is an element of an array of floats.
gfreq=freq[i]*count;//count being a float value also
//The compiler seems to be telling me taht the * is an indirection operator
if(gfreq<freq[j]) //I am told that this is an illegal use of floats
I had not realised that this is the case with floats. Is there any way I can get around this problem?