Are hexadecimal numbers ever negative?

后端 未结 6 1028
感情败类
感情败类 2021-02-14 09:39

Are hexadecimal numbers ever negative? If yes then how?
For binary you would have signed and unsigned.
How would one represent them in Hex? I need this

6条回答
  •  天命终不由人
    2021-02-14 10:07

    In Java, these are the bounds of the Integer data type:

    Integer.MIN_VALUE = 0x80000000; 
    Integer.MAX_VALUE = 0x7fffffff;
    

提交回复
热议问题