Ceil - method of the Pm object
Description:
Returns the smallest integer greater or equal to a given number.
Syntax:
Double Ceil(Double nValue)
Example:
JavaScriptVBScriptSelect and copy to clipboard
var n;
n = Pm.Ceil(3.14);
// Returns 4
n = Pm.Ceil(-3.14);
// Returns -3
n = Pm.Ceil(0.04);
// Returns 1
n = Pm.Ceil(-0.04);
// Returns 0
n = Pm.Ceil(7);
// Returns 7
n = Pm.Ceil(-7);
// Returns -7
Dim n
n = Pm.Ceil(3.14)
' Returns 4
n = Pm.Ceil(-3.14)
' Returns -3
n = Pm.Ceil(0.04)
' Returns 1
n = Pm.Ceil(-0.04)
' Returns 0
n = Pm.Ceil(7)
' Returns 7
n = Pm.Ceil(-7)
' Returns -7