I get the following error when trying to build my project using Xcode 5.
Use of undeclared identifier 'FLT_EPSILON'
I checked, and FLT_EPSILON (it appears brown in Xcode) is defined in the file "float.h".
What am I doing wrong?
This is the code that uses FLT_EPSILON:
if (someTimeInterval < 0.03 - FLT_EPSILON) { someTimeInterval = 0.1; }
I realized that this was because I was trying to test it on the iPhone 5S simulator (64 BIT).
I do not understand the differences very well when using a 64-bit simulator. What should I include instead of FLT_EPSILON - and why doesn't it work with 64 bits?
source share