The list of methods to do Decimal are organized into topic(s).
String
decimalAlign(int width, int precision, String s) Formats a String representation of a decimal number to a stated precision and total width.
String fraction = "";
String whole = "0.";
int dot = s.lastIndexOf('.');
if (dot >= 0) {
whole = s.substring(0, dot + 1);
fraction = s.substring(dot + 1);
if (fraction.length() > precision) {
...
int
decimalDigitCount(int num) decimal Digit Count
if (num < 10)
return 1;
if (num < 100)
return 2;
if (num < 1000)
return 3;
if (num < 10000)
return 4;
...
String
decimalDump(final byte[] bytes) Dumps the byte array into a string as a series of 8bit decimal numbers
StringBuffer buffer = new StringBuffer();
for (byte b : bytes) {
buffer.append(Byte.toString((byte) (b & SINGLE_BYTE_SIGN_MASK)));
buffer.append(" ");
return buffer.toString();
float
decimalPart(float f) Returns the decimal part of a float, regardless of its sign.
return f - (int) f;