Floor - Math

From Creation Kit
Jump to: navigation, search

Member of: Math Script

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


int Function Floor(float afValue) native global


  • afValue: The value to get the floor of.

Return Value

The floor of the passed-in value.


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

See Also