The ceil() method returns the smallest number.
If the given argument is text or no argument given, the result is NaN.
Syntax 
Code:-
<!DOCTYPE html> 
<html> 
 
<head> 
 <meta name="viewport" content="width=device-width, initial-scale=1"> 
</head> 
 
<body> 
 <h1>Math.ceil()</h1> 
 
 <input type="button" onclick="fun_ceil();" value="Find Celil"> 
 
 <script> 
  function fun_ceil() 
  { 
 
   var num1 = 80.3; 
   var num2 = 80.8; 
 
   alert(Math.ceil(num1)); 
   alert(Math.ceil(num2)); 
 
  } 
 </script> 
 
</body> 
 
</html>
 
 
The math. Ceil in JavaScript:- Geniusofstudent
 
        Reviewed by 
Network security
        on 
        
July 09, 2019
 
        Rating: 
5
 
       
    
 
 
 
 
 
 
 
 
 
No comments: