Sprotty
Toggle Dark/Light/Auto modeToggle Dark/Light/Auto modeToggle Dark/Light/Auto modeBack to homepage

Function.Almost Equals

sprotty-protocol / almostEquals

Function: almostEquals()

almostEquals(a, b): boolean

Defined in: utils/geometry.ts:328

Returns whether two numbers are almost equal, within a small margin (0.001)

Parameters

a

number

First number

b

number

Second number

Returns

boolean

True if the two numbers are almost equal