CGFloat: round, floor, abs, and 32/64 bit precision
TLDR: How do I call standard floating point code in a way that compiles both 32 and 64 bit CGFloats without warnings? CGFloat is defined as either double or float, depending on the compiler settings and platform. I'm trying to write code that works well in both situations, without generating a lot of warnings. When I use functions like floor, abs, ceil, and other simple floating point operations, I get warnings about values being truncated. For example: warning: implicit conversion shortens 64-bit value into a 32-bit value I'm not concerned about correctness or loss of precision in of