Java Number Format Pattern formatBigNumber(long value)

Here you can find the source of formatBigNumber(long value)

Description

Format like ###000000

License

Apache License

Parameter

Parameter Description
value to format

Return

formatted value

Declaration

public static String formatBigNumber(long value) 

Method Source Code


//package com.java2s;
/*/*w  w  w  .j  av  a  2 s  .  c o  m*/
 * This software is released under a licence similar to the Apache Software Licence.
 * See org.logicalcobwebs.proxool.package.html for details.
 * The latest version is available at http://proxool.sourceforge.net
 */

import java.text.DecimalFormat;

public class Main {
    private static DecimalFormat bigCountFormat = new DecimalFormat("###000000");

    /**
     * Format like ###000000
     * @param value to format
     * @return formatted value
     */
    public static String formatBigNumber(long value) {
        return bigCountFormat.format(value);
    }
}

Related

  1. format(Object num, int dev, String valueIfZero)
  2. format(Object price)
  3. format(String str_number, int digits)
  4. format(String value)
  5. formatAmtByComma(String amt, int len)
  6. formatBitRate(long bytes)
  7. formatBytes(long bytes)
  8. formatBytes(long bytes)
  9. formatBytes(long bytes)