I have var to which I have assigned the value 12.90. I want if the variable has a value of 12.90, then it can be executed if another wise else
if (appDelegate.p_ClinInf_Yes_NV_InModel==12.90) { } else{ }
but it starts every time else
try it
if (appDelegate.p_ClinInf_Yes_NV_InModel == 12.90F) { } else{ }
Comparing float and double for equality will not give the expected results due to their accuracy.