Change CGFloat to float