Is 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]];
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…