Android Utililty Methods Decimal Format

List of utility methods to do Decimal Format

Description

The list of methods to do Decimal Format are organized into topic(s).

Method

StringfromDecimalToOtherBase(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;