I have a string that I convert to a double like this:
double d = [string doubleValue];
The documentation for doubleValue tells
doubleValue
If you are sure about your comparison and you want tell it to clang, surround your code with:
#pragma clang diagnostic push #pragma clang diagnostic ignored "-Wfloat-equal" /* My code triggering the warnings */ #pragma clang diagnostic pop