Here you can find the source of getTwoPoint(double val)
public static String getTwoPoint(double val)
//package com.java2s; //License from project: LGPL import java.text.DecimalFormat; public class Main { public static String getTwoPoint(double val) { DecimalFormat nf = new DecimalFormat("0.00"); return nf.format(val); }/*from www . ja v a 2 s. c o m*/ }