List of utility methods to do Long Number Format
Long | formatLong(String value) Checks if the value can safely be converted to a long primitive. if (value == null) { return null; try { return new Long(value); } catch (NumberFormatException e) { return null; |
String | formatLongAsDecimal(long l) format Long As Decimal String rv = l + ""; if (rv.length() < 3) { while (rv.length() < 3) { rv = "0" + rv; return "." + rv; return rv.substring(0, rv.length() - 3) + "." + rv.substring(rv.length() - 3, rv.length()); ... |
String | longToSimpleString(long value) long To Simple String return simpleFormat.format(value);
|