I have this calculation:
float tempd = 2451545 + 0.0009 + (77.048759/360) + 4682;
NSLog(@"tempd : %f", tempd);
The result using Xcode is : 2456227.250000
But it should be : 2456227.21492
Do you guys have any idea what I’m doing wrong?
I cant seem to figure it out.
Thanks in advance!
Its due to the limitation in the precision of float, try this