tasks/dist.js
function format_number(size, precision) {
    var decimal, factor;
    if (precision == null) precision = 1;
    factor = Math.pow(10, precision);
    decimal = Math.round(size * factor) % factor;
    return parseInt(size) + "." + decimal;
}
function format_number(size, precision) {
    var decimal, factor;
    if (precision == null) precision = 1;
    factor = Math.pow(10, precision);
    decimal = Math.round(size * factor) % factor;
    return parseInt(size) + "." + decimal;
}
换算