What is the difference between Int32
and UInt32
?
If they are the same with capacity range capabilities, the question is for what reason UInt32
was created? When should I use UInt32
instead of Int32
?
UInt32 does not allow for negative numbers. From MSDN:
The UInt32 value type represents unsigned integers with values ranging from 0 to 2 to the power of 32 or 2**32 (which equals to 4,294,967,295).
An integer is -2147483648 to 2147483647 and an unsigned integer is 0 to 4294967295.
This article might help you.
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