Here you can find the source of decodeBigInteger(String value)
private static BigInteger decodeBigInteger(String value)
//package com.java2s; //License from project: Apache License import java.math.BigInteger; public class Main { private static BigInteger decodeBigInteger(String value) { int radix = 10; int index = 0; boolean negative = false; if (value.startsWith("-")) { negative = true;//from w ww. ja v a2 s.com index++; } if (value.startsWith("0x", index) || value.startsWith("0X", index)) { index += 2; radix = 16; } else if (value.startsWith("#", index)) { index++; radix = 16; } else if (value.startsWith("0", index) && value.length() > 1 + index) { index++; radix = 8; } BigInteger result = new BigInteger(value.substring(index), radix); return (negative ? result.negate() : result); } }