I am looking at some older Apple code for C++, I am familiar with float but not Float32 and Uint32 types are they the same as standard float and ints?
Thanks
UInt32
is a 32-bit (4-byte) unsigned integer. This means that it can represent values in the range[0, 2^32-1]
(= [0, 4294967295]
).
Float32
is a 32-bit (aka single-precision [contrast with double-precision]) floating point number.
As other answers have mentioned, the types exist to guarantee the width.
The suffix gives the bit size. This makes them the same if and only if the Standard float and int have the same size on the target machine. They exist to give guaranteed sizes on all platforms.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With