List of utility methods to do Int Base Convert
int | fromBase36(String base36Number) Converts a given Base36 value into its deciamal equivalent. return fromOtherBaseToDecimal(36, base36Number);
|
int | fromOtherBaseToDecimal(int base, String number) Converts a number from another base to the decimal counting system int iterator = number.length(); int returnValue = 0; int multiplier = 1; while (iterator > 0) { returnValue = returnValue + (baseDigits.indexOf(number.substring(iterator - 1, iterator)) * multiplier); multiplier = multiplier * base; ... |