Difference between revisions of "Ceiling - Math"

From the CreationKit Wiki
Jump to navigation Jump to search
imported>Jlundin
(New page: Category:Scripting Category:Papyrus '''Member of:''' Math Script Calculates the smallest integer greater than or equal to the passed in value. == Syntax == <source lang="papy...)
 
imported>JLundin
 
Line 1: Line 1:
[[Category:Scripting]]
[[Category:Scripting]]
[[Category:Papyrus]]
[[Category:Papyrus]]
[[Category:Non-delayed Native Function]]
'''Member of:''' [[Math Script]]
'''Member of:''' [[Math Script]]



Latest revision as of 07:57, 12 September 2012

Member of: Math Script

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

Syntax[edit | edit source]

int Function Ceiling(float afValue) native global

Parameters[edit | edit source]

  • afValue: The value to get the ceiling of.

Return Value[edit | edit source]

The ceiling of the passed-in value.

Examples[edit | edit source]

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

See Also[edit | edit source]