Java Number Format Pattern formatGopNumber(Number gop)

Here you can find the source of formatGopNumber(Number gop)

Description

format Gop Number

License

Open Source License

Declaration

public static String formatGopNumber(Number gop) 

Method Source Code


//package com.java2s;
import java.math.RoundingMode;
import java.text.DecimalFormat;

public class Main {

    public static String formatGopNumber(Number gop) {
        DecimalFormat df = new DecimalFormat("######0.000");
        df.setRoundingMode(RoundingMode.DOWN);
        return df.format(gop);
    }/*ww w  . j a va  2s.c  om*/
}

Related

  1. formatDashboardNumber(Number amount)
  2. formatDisplay(String displayString)
  3. formatDollar(Object obj)
  4. formatDollarTd(Object obj)
  5. formatFileLength(long length)
  6. formatI18N(Object ob)
  7. formatiereSpeichergroesse(long bytes)
  8. formatIncludeCommas(final Number object)
  9. formatInt(final int number)