十六进制补码转十进制,十进制的负数

-Integer.parseInt(Integer.toBinaryString(~(str-1)).substring(16),2);

原文地址:https://www.cnblogs.com/ling-1991/p/11107064.html