Java Utililty Methods Long Number Format

List of utility methods to do Long Number Format

Description

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

Method

LongformatLong(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;
StringformatLongAsDecimal(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());
...
StringlongToSimpleString(long value)
long To Simple String
return simpleFormat.format(value);