Skip to content

Api > Mathf > Round()


Mathf.Round(number f)⚓︎

Returns f rounded to the nearest integer.

Parameters:⚓︎

Name Type Description
f number Value

Returns:⚓︎

type Description
number f rounded to the nearest integer.

Usage⚓︎

---@type number
local f;


local val0 = Mathf:Round(f)