Java Long Number Readable Format humanReadableNumber(long total)

Here you can find the source of humanReadableNumber(long total)

Description

human Readable Number

License

Open Source License

Declaration

public static String humanReadableNumber(long total) 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import java.text.DecimalFormat;
import java.text.NumberFormat;
import java.util.Locale;

public class Main {
    public static String humanReadableNumber(long total) {
        DecimalFormat formatter = (DecimalFormat) NumberFormat.getInstance(Locale.US);

        return formatter.format(total);
    }//from  w  w  w  . j a  v a  2s  .c  om
}

Related

  1. humanReadableBytes(long bytes)
  2. humanReadableDateDiff(long start, long end)
  3. humanReadableDuration(long length)
  4. humanReadableDuration(long ms)
  5. humanReadableInt(long number)
  6. humanReadableSize(long byteCount)
  7. humanReadableSize(long bytes)
  8. humanReadableTime(final long duration)
  9. humanTimeDiff(long timeDiff)