코드:
결과보기 »
<!DOCTYPE html> <html lang="ko"> <head> <meta charset="UTF-8"> <title>JavaScript Math Method</title> </head> <body> <h1>Math.ceil() 메소드</h1> <script> document.write(Math.ceil(10.95) + "<br>"); // 11 document.write(Math.ceil(11.01) + "<br>"); // 12 document.write(Math.ceil(11) + "<br>"); // 11 document.write(Math.ceil(-10.95) + "<br>"); // -10 document.write(Math.ceil(-11.01)); // -11 </script> </body> </html>