Skip to main content

Mathf.Round(number f)

Returns f rounded to the nearest integer.

Parameters:

NameTypeDescription
fnumberValue

Returns:

typeDescription
numberf rounded to the nearest integer.

Usage

---@type number
local f;


local val0 = Mathf:Round(f)