对,如楼上所述。另外,给你个修改过的源码,相当于_atoi64,返回的数为long long 类型,可以支持比4294967295 大的数字的处理。long long MY_atol( const char *nptr ){ int c; /* current char */ long long total; /* current total */ int sign; /* if '-', then negativ...
// 把BigInteger高位的符号位转换为数值位 public BigInteger unsigned(BigInteger b) { if (b.signum()>=0)return b;byte[] a1 = b.toByteArray();byte[] a2 = new byte[a1.length+1];a2[0] = 0;System.arraycopy(a1, 0, a2, 1, a1.length);return new BigInteger(a2);} ...