I am trying to make a time based drawing. For example: define a point for later use.
CGPoint testPoint = CGPointMake(2341.2345, 1350046324.1234);
Then testPoint.y becomes 1350046336.00 which is not we put there.
I am using Xcode 4.5.
Any ideas? Thanks.
CGPoint uses float (32bit) datatypes (at least on iOS6).
From the headers:
with
and
So this results in my test code:
printing to the log:
So you just left the range of numbers where single precision floats are good enough.
Thats all.
BTW.: I did think CGFloat is double before I stumbled upon your question.