How to safely floor or ceil a CGFloat to int? How to safely floor or ceil a CGFloat to int? ios ios