📅  最后修改于: 2022-03-11 15:02:02.745000             🧑  作者: Mango
function round(value, precision) {
var multiplier = Math.pow(10, precision || 0);
return Math.round(value * multiplier) / multiplier;
}