JavaScript Reference/Javascript Methods/ceil
Версия от 18:30, 25 мая 2010; (обсуждение)
"ceil()" Example
<html>
<body>
<button onclick="alert(Math.ceil(1.1));">CEIL</button>
</body>
</html>
"ceil()" is applied to
+----------------+--------------------------------------------------------------+
| Applied_To |Math |
+----------------+--------------------------------------------------------------+
"ceil()" Syntax, Parameters and Note
Note:
Rounds the number up to the nearest integer.
Syntax:
Math.ceil(param1)
Parameters:
param1 Required; the number to convert.