math.floor

From Wake
Jump to: navigation, search
This function overwrites an existing Lua function in order to extend its functionality.
Get the value of the nearest integer <= x.

Function

Synopsis

result = math.floor(x)

Arguments

number,Vector2,Vector3,Vector4 x

The value.

Returns

number,Vector2,Vector3,Vector4 result

Notes

  • This function implies the argument type based on the first argument. As such, you may not use table shorthand for the first argument if it is supposed to be a vector.
  • This function overwrites the function from the Lua standard library in order to support vector types.

See Also