I here is the problem:
I have a NSString that contain “1.7” (for example) and I have to get the float number = 1.7
I’ ve tried with [mystring floatValue] but the result is 1.700000000004576
If I try with “1.74” the result is 1.74000000000000000067484
how can I fix it?
thank you!
I here is the problem: I have a NSString that contain 1.7 (for example)
Share
Solved!
I used sqlite3_bind_text even if my database attribute is FLOAT value and I used mystring instead of myfloat and it work fine! Thank you!