Here you can find the source of formatGopNumber(Number gop)
public static String formatGopNumber(Number gop)
//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*/ }