(第7回)[Javascript]日付や時間の表示②
- ℃
- 2018年1月16日
- 読了時間: 1分

Math.floor(n) 小数点以下 切り捨て Math.floor(1234.56) 1234
Math.ceil(n) 小数点以下 切り上げ Math.ceil(1234.56) 1235
Math.round(n) 小数点以下 四捨五入 Math.round(1234.56) 1235
Math.abs(n) 絶対値 Math.abs(-1234) 1234
Math.random() 乱数 Math.random() 0.9161357937149364
Comments