Skip to content

Api > Mathf > Approximately()


Mathf.Approximately(number a, number b)⚓︎

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

Parameters:⚓︎

Name Type Description
a number first value
b number Second value

Returns:⚓︎

type Description
boolean returns true if they are similar.

Usage⚓︎

---@type number
local a;

---@type number
local b;


local val0 = Mathf:Approximately(a, b)