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.
Example:
for(int i=0;i<n;i++)
{
gfreq=freq[i]*count;//count being a float value also
//The compiler seems to be telling me taht the * is an indirection operator
for(int j=0;j<n;j++)
{
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?