I know UIKit uses CGFloat because of the resolution independent coordinate system.
UIKit
CGFloat
But every time I want to check if for example fram
fram
You can use such code for compare float with zero:
if ((int)(theView.frame.origin.x * 100) == 0) { // do important operation }
This will compare with 0.1 accuracy, that enough for CGFloat in this case.