Ceiling - Math

Revision as of 15:11, 2 December 2015 by imported>Plplecuyer
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Member of: Math Script

Calculates the smallest integer greater than or equal to the passed in value.

SyntaxEdit

int Function Ceiling(float afValue) native global

ParametersEdit

  • afValue: The value to get the ceiling of.

Return ValueEdit

The ceiling of the passed-in value.

ExamplesEdit

int x = Ceiling(2.1) ; x == 3
int y = Ceiling(5.9) ; y == 6

See AlsoEdit