//四舍五入
function roundNumber(number,fractionDigits){
with(Math){
return round(number*pow(10,fractionDigits))/pow(10,fractionDigits);
}
}
JS四舍五入
最新推荐文章于 2025-09-20 10:27:57 发布
//四舍五入
function roundNumber(number,fractionDigits){
with(Math){
return round(number*pow(10,fractionDigits))/pow(10,fractionDigits);
}
}

被折叠的 条评论
为什么被折叠?