Here you can find the source of formatMoney(Object str)
public static double formatMoney(Object str)
//package com.java2s; //License from project: Apache License import java.text.DecimalFormat; public class Main { public static double formatMoney(Object str) { DecimalFormat df = new DecimalFormat("0.00"); return Double.valueOf(df.format(str)).doubleValue(); }/*from ww w .j av a 2s . c o m*/ }