執行 ❯
建立您
自己的
網站
×
更改方向
儲存程式碼
更改主題,暗/亮
前往 Spaces
<!DOCTYPE html> <html> <body> <h1>JavaScript Math</h1> <h2>The Math.floor() Method</h2> <p>Math.floor() rounds a number DOWN to the nearest integer:</p> <p id="demo"></p> <script> document.getElementById("demo").innerHTML = Math.floor(1.6); </script> </body> </html>