Skip to content

Api > Mathf > Floor()


Mathf.Floor(number f)⚓︎

Returns the largest integer smaller than or equal to f.

Parameters:⚓︎

Name Type Description
f number Value

Returns:⚓︎

type Description
number largest integer smaller than or equal to f.

Usage⚓︎

---@type number
local f;


local val0 = Mathf:Floor(f)