• Scott Sun's avatar
    s · dccb1a5b
    Scott Sun authored
    dccb1a5b
test.js 81 Bytes



let num = 23.1


console.log(
  Math.round(num.toFixed(4)*1000)/1000 - 0
);