So for some reason I have a float named wday which has the value of 7.000000, but when I say
int wdaygiven = wday;
I get 6 and not 7. This also happens when I do this
NSNumber *num = [NSNumber numberWithFloat:wday];
Any ideas why? I really need 7 as the value given and not 6.
Thanks in advance