Function Reference

_Ceil

Returns the smallest integer greater than or equal to the specified value.

#include <math.au3>
_Ceil ( $nValue )

 

Parameters

$nValue Any valid numeric expression.

 

Return Value

Success: Returns the smallest integer greater than or equal to the specified value.
Failure: Returns 0.
@Error: 0 = No error.
1 = $nValue isn't a number.

 

Remarks

None.

 

Related

_Floor

 

Example


#include <Math.au3>

$x = _Ceil(5.25)  ; returns 6