function roundDownToFixed(v, d=2) { const mul = Math.pow(10, d); return (Math.floor(v * mul) / mul).toFixed(d); } > roundDownToFixed(0.455, ...
確定! 回上一頁