I am using simply stringWithFormat to get the string value of double using %f. But I am getting null. If I use NSString *myString = [NSNumber stringValue]; it works. What is wrong with code shown in attached screenshot? 
This is actual production code. and because of this issue some time (very rare) I get crash. The fabric crash log shows that adding null value to NSDictionary causing crash. as I am using modern objective C. my question is "How stringWithFormat works?"

In second Screen shot, You have one unused code.
Please remove this line Then, It will work fine.
Hope you it will work for you.