I try to convert my string data to float type. Conversion works but I need exact value.
Here is my code and output;
let myString = "2558.40";
let convertedToFloat = (myString as NSString).floatValue
// convertedToFloat is 2558.3999
So, I need exactly 2558.40
as float type. What should I do?