Run ❯
Get your
own
website
Result Size:
625 x 565
×
Change Orientation
Save Code
Change Theme, Dark/Light
Go to Spaces
<!DOCTYPE html> <html> <body> <p>Return the integer part of a number (remove the decimals):</p> <p id="demo"></p> <script> let x = Math.trunc(8.7512356); document.getElementById("demo").innerHTML = x; </script> </body> </html>