//java截取一位小数
java.text.DecimalFormat df=new java.text.DecimalFormat("#.#");
df.format(3.22323)
//js截取一位小数
function fomatFloat(src,pos){
return Math.round(src*Math.pow(10, pos))/Math.pow(10, pos);
}
//java截取一位小数
java.text.DecimalFormat df=new java.text.DecimalFormat("#.#");
df.format(3.22323)
//js截取一位小数
function fomatFloat(src,pos){
return Math.round(src*Math.pow(10, pos))/Math.pow(10, pos);
}