adding CGFloat math.h functions