Here you can find the source of parseYuanToYi(Double data)
public static Double parseYuanToYi(Double data)
//package com.java2s; //License from project: Open Source License import java.text.DecimalFormat; import java.text.NumberFormat; public class Main { public static Double parseYuanToYi(Double data) { // Double temp=data/100000000; if (data != null) { NumberFormat nf = new DecimalFormat("0.00"); String tmp = nf.format(data / 100000000); return Double.valueOf(tmp); }//from www.j a va2s . c o m return data; } }