SHIP:Sail:ceil

From Serious Documentation
Revision as of 06:08, 22 June 2014 by TerryW-Serious (talk | contribs) (Created page with "__NOTOC__ See Also: *SHIP Sail Home *SHIP Sail Function Home *{{SailFunc|abs}}, {{SailFunc|ceil}}, {{SailFunc|floor}}, {{SailFunc|ftoi}},...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

See Also:

ceil

Function Returns Introduced Description
ceil Integer 1 Gets the smallest integer greater than or equal to a number

Prototype

Integer ceil(Float n);

Parameters/Return Value

Parameter Data Type Description
n Integer/Float the number to find the ceiling value of
Return Integer the ceiling of the supplied number

Detailed Description

The ceil() function returns the returns the smallest integer greater than or equal to a number. If you visualize a number line, ceil() goes to the integer to the right.

Examples

Example Result Notes
ceil(-5.1f); -5
ceil(5.2f); 6