IR Framework

Number.ceil Method

Returns the smallest integer greater than or equal to the number.
object.ceil()

Arguments

object
Required. Always the name of a Number object.



Return Value

The Number.ceil() method returns the smallest integer greater than or equal to the number.



Remarks

The following example illustrates the use of the Number.ceil method.

Console.Writeln((-45.2).ceil());		//	Outputs -45 to the Console.


Requirements