i'm having troubles in comparing a double value to a value such as "5.5". in my code i have the following:
if (j==5.5f) {
//do something
}
when i run the code and use nslog to print the values of the value of j and 5.5f i get the exact same values. However, the code doesn't enter the if statement. what is wrong here?