Invalid operands to binary expression (‘double’ and ‘double’)

Invalid operands to Binary expression (‘ double ‘and’ double ‘)
In the following code, the implementation does something by getting the estimatedProgress to be a multiple of 5,

  double estimatedProgress = 100;

     if(estimatedProgress%5==0) {

         NSLog(@"");

    }

Resolves – type conversion to estimatedProgress to int

     if((int)estimatedProgress%5==0) {

         NSLog(@"");

    }

 

Read More: