Hi there,
This seems to be a difficult thing to search for, so I'm just going to have to ask instead. Basically, I'm looking for what the equivalent of an NSInteger would be for a float?
As I understand it, NSInteger is an integer whose size is that of a pointer, so on 32-bit systems that should be 32-bit, and on 64-bit systems that should be 64-bit.
I'm wondering if there's a provided value for floats that is similar; i.e - on a 32-bit system it'll be a float, but on a 64-bit system it'll be a double? I'm interested because I've found that while 32-bit can be handled just-fine on 64-bit it's not quite as efficient, and it definitely is less efficient to use 64-bit doubles on a 32-bit machine. For this reason I'd like to be always using the most efficient, as I don't require the full-range of a float let alone a double anyway.
Thanks
This seems to be a difficult thing to search for, so I'm just going to have to ask instead. Basically, I'm looking for what the equivalent of an NSInteger would be for a float?
As I understand it, NSInteger is an integer whose size is that of a pointer, so on 32-bit systems that should be 32-bit, and on 64-bit systems that should be 64-bit.
I'm wondering if there's a provided value for floats that is similar; i.e - on a 32-bit system it'll be a float, but on a 64-bit system it'll be a double? I'm interested because I've found that while 32-bit can be handled just-fine on 64-bit it's not quite as efficient, and it definitely is less efficient to use 64-bit doubles on a 32-bit machine. For this reason I'd like to be always using the most efficient, as I don't require the full-range of a float let alone a double anyway.
Thanks