Difference between revisions of "Floor - 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 largest integer less than or equal to the passed in value. == Syntax == <source lang="papyrus"...)
 
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]]



Revision as of 08:57, 12 September 2012

Member of: Math Script

Calculates the largest integer less than or equal to the passed in value.

Syntax

int Function Floor(float afValue) native global

Parameters

  • afValue: The value to get the floor of.

Return Value

The floor of the passed-in value.

Examples

int x = Floor(2.1) ; x == 2
int y = Floor(5.9) ; y == 5

See Also