Skip to main content

Mathf.Floor(number f)

Returns the largest integer smaller than or equal to f.

Parameters:

NameTypeDescription
fnumberValue

Returns:

typeDescription
numberlargest integer smaller than or equal to f.

Usage

---@type number
local f;


local val0 = Mathf:Floor(f)