Switches floats to CGFloat for better compatibility with ARM 64 devices fixes #672 & #645