Why i dont get NaN as result? 0 is wrong. Maybe compiler settings?
CGFloat fValue = [@"NaN" floatValue]; // fValue is 0
double ddd = [@"NaN" doubleValue]; // also 0`
Edit: Strange, in swift this works and returns nan:
let fValue = Float ("NaN")
let ddd = Double ("NaN")
It's written on the documentation. This is for float value, the same with double value.