📜  如何消除js中的小数 - Javascript代码示例

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

代码示例3
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)