List of utility methods to do Decimal Format
String | fromDecimalToOtherBase(long base, long decimalNumber) Converts a decimal number to another counting system. String tempVal = decimalNumber == 0 ? "0" : ""; long mod; while (decimalNumber != 0) { mod = decimalNumber % base; tempVal = baseDigits.substring((int) mod, (int) (mod + 1)) + tempVal; decimalNumber = decimalNumber / base; return tempVal; |