Java tutorial
//package com.java2s; import java.text.DecimalFormat; public class Main { public static String liangweixiaoshu2(String value) { DecimalFormat df = new DecimalFormat("#.00"); Double dValue = Double.parseDouble(value); return df.format(dValue); } }