Skip to main content

Mathf.Approximately(number a, number b)

Compares two floating point values and returns true if they are similar.

Parameters:

NameTypeDescription
anumberfirst value
bnumberSecond value

Returns:

typeDescription
booleanreturns true if they are similar.

Usage

---@type number
local a;

---@type number
local b;


local val0 = Mathf:Approximately(a, b)