1. toFixed()
  2. Math.round(), Math.floor(), 或 Math.ceil()
  3. toPrecision()
  4. 整数使用BigInt或BigDecimal(在Node.js中)

参考地址open in new window

Last Updated:
Contributors: haizhiguang