In some cases it can be important to select the correct floating point type for your application, and it seems that on ios/osx you are pushed in the direction of using CGFloat
.
CGFloat
is meant to be the native floating point type, but I can't find a good summary of which device is 32bit or 64bit (and I would worry that the head-line designation might be for the integer unit or the address bus which might be different from the FP unit).
Furthermore, I assume all of the hardware supports double FP anyway, albeit at lower performance than the native 64 bit units.
Presumably, the O/S is irrelevant as this applies only to the use of the address space (but correct me if I am wrong).