iphone - How to check if NSMutableArray object contains NaN -
this question has answer here:
- determine if nsnumber nan 9 answers
i have nsmutablearray 1 float value , 4 nan values. want execute operations if array object nan. how can write if condition?
try isnan function
iterate array , put check
isnan([[array objectatindex:i] floatvalue])
(dont forget add math.h library)
Comments
Post a Comment