JS四舍五入
//四舍五入
function roundNumber(number,fractionDigits){
with(Math){
return round(number*pow(10,fractionDigits))/pow(10,fractionDigits);
}
}
//四舍五入
function roundNumber(number,fractionDigits){
with(Math){
return round(number*pow(10,fractionDigits))/pow(10,fractionDigits);
}
}
暂无评论。
评论功能维护中,当前仅展示历史评论。