CGFloat result=100/126;
NSLog(@"%0.5f",result);
the output of above code is 0.00000 but when i check it on calculator then the value is 0.79365. what is the problem
See Question&Answers more detail:osCGFloat result=100/126;
NSLog(@"%0.5f",result);
the output of above code is 0.00000 but when i check it on calculator then the value is 0.79365. what is the problem
See Question&Answers more detail:os