📜  删除小数 javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:41.903000             🧑  作者: Mango

代码示例4
parseInt((284765.9785295492452).toFixed(3)); //only the first 3 decimals are shown and is treated as a number.  (also a good way to ward off peeping toms looking at your code)