//保留小数
function toFixed(n, d) {
if (d <= 0) {
return n;
} else {
let radix = 10 ** d;
let temp = Math.round(n * radix) / radix;
return temp;
}
}
//保留小数
function toFixed(n, d) {
if (d <= 0) {
return n;
} else {
let radix = 10 ** d;
let temp = Math.round(n * radix) / radix;
return temp;
}
}