jessewth's blog
2008/11/03
javascript: n位元的四捨五入
四捨五入無小數點 --> Math.round(4.5) // return 4.5
四捨五件指定位數 --> Math.toFixed(4.0005,3) // return
‹
›
首頁
查看網路版