NXSL:ceil

Revision as of 01:58, 6 January 2013 by Victor (talk | contribs) (Created page with "__NOTOC__ Round up value. == Syntax == ceil(''x''); == Parameters == :{| |- | ''x'' || Floating point value. |} == Return Value == The smallest integral value that is...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Round up value.


Syntax

ceil(x);


Parameters

x Floating point value.


Return Value

The smallest integral value that is not less than x.


Examples

ceil(2.3)	->	3
ceil(3.8)	->	4
ceil(-2.3)	->	-2
ceil(-3.8)	->	-3