What is the difference between Int32 and UInt32?

后端 未结 5 1507
一整个雨季
一整个雨季 2021-02-07 10:39

What is the difference between Int32 and UInt32?

If they are the same with capacity range capabilities, the question is for what reason U

5条回答
  •  滥情空心
    2021-02-07 10:55

    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).

提交回复
热议问题