@CEILING

<< Click to Display Table of Contents >>

Navigation:  TCC > Variables & Functions > Functions >

@CEILING

@CEILING[n] : Returns the value of the smallest integer that is not less than n. @CEILING will perform an implicit @EVAL on its argument, so you can enter an arithmetic expression.

 

Examples:

 

echo %@ceiling[3.14]

4

 

echo %@ceiling[-3.14]

-3

 

echo %@ceiling[0]

0

 

echo %@ceiling[123*37.36]

4596

 

See also: @FLOOR.