There a function like isNan (Javascript example) for Objective C ?. I just noticed this code is causing to display Nan % so i need to detect is a value is Nan so i could change it to 0
[portefeuillePercentWaarde setText:[NSString stringWithFormat:@"%.2f%%", verschilPrencentage]];