Math.round(3.14159) // 3 Math.round(3.5) // 4 Math.floor(3.8) // 3 ... Optionally we can use the toFixed() method that belongs to the Number ...
確定! 回上一頁