top of page
検索

(第7回)[Javascript]日付や時間の表示②

  • 執筆者の写真: ℃
  • 2018年1月16日
  • 読了時間: 1分

ree

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


© 2023 by The Book Lover. Proudly created with Wix.com

bottom of page