i have a float value
e.g : 3.92199993
i want to truncate it like 3.921 what i did is to convert it to NSString with format 0.3f and have it what i want in string type. But when i convert that string to a float then it becomes like 3.92156863
So what i can have 3.921 from the first float ?
e.g : 3.92199993
i want to truncate it like 3.921 what i did is to convert it to NSString with format 0.3f and have it what i want in string type. But when i convert that string to a float then it becomes like 3.92156863
So what i can have 3.921 from the first float ?