Floor - Math

Revision as of 12:14, 19 June 2019 by imported>Ice Eyes (→‎Examples: Added "Math." prefix)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Member of: Math Script

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

SyntaxEdit

int Function Floor(float afValue) native global

ParametersEdit

  • afValue: The value to get the floor of.

Return ValueEdit

The floor of the passed-in value.

ExamplesEdit

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

See AlsoEdit