I'm rotating some views in my code and it seems that some of them get weird fractions, e.g., 10.0 becomes 10.000000000000002.
You can see it for yourself with this snippet:
UIView *view = [[UIView alloc] initWithFrame:CGRectMake(0.0, 0.0, 10.0, 10.0)];
for (NSUInteger i = 0; i < 100; i++) {
view.transform = CGAffineTransformRotate(view.transform, ((90.0) / 180.0 * M_PI));
NSLog(@"%@", NSStringFromCGRect(view.frame));
}
Any help is greatly appreciated!