葉庭卉JavaScript亂數random捨去小數floor四捨五入round

343,344,345,346影片

343介紹物件object

RANDOM亂數,FLOOR捨去尾數,CEIL進位,ROUND

輸入整數

Math.random()亂數Method方法

Math.floor()捨去小數Method方法

Math.ceil()進位Method方法

Math.round()四捨五入Method方法

留言

  1. Math.random floor ceil round. https://hui026.blogspot.com/2023/12/javascriptrandomfloorround.html

    回覆刪除

張貼留言

這個網誌中的熱門文章

Python建構constructor視窗%d控制輸出格式

葉庭卉微軟Visual Studio Code編輯網路程式HTML,CSS,JAVASCRIPT