格式化
accounting.formatNumber(5318008,2,",")
//=>"5,318,008.00"
十位前端显示两位
根据小数点后第三位四舍五入
accounting.toFixed(0.6141031155, 2);
//=>"0.61"
accounting.toFixed(0.6151031155, 2);
//=>"0.62"
accounting.formatNumber(5318008,2,",")
//=>"5,318,008.00"
根据小数点后第三位四舍五入
accounting.toFixed(0.6141031155, 2);
//=>"0.61"
accounting.toFixed(0.6151031155, 2);
//=>"0.62"
本文标题:kams-金额处理
本文链接:https://www.haomeiwen.com/subject/tslevttx.html
网友评论