Here you can find the source of formatDataValue(double value)
public static String formatDataValue(double value)
//package com.java2s; import java.text.DecimalFormat; import java.text.NumberFormat; public class Main { public static String formatDataValue(double value) { NumberFormat dataValueFormat = new DecimalFormat("0"); return dataValueFormat.format(value); }/*from w w w . ja v a 2 s. c o m*/ }