Skip to content

API > @blocksuite/blocks > almostEqual

Function: almostEqual ​

almostEqual( a, b, epsilon = 0.0001): boolean

Parameters ​

ParameterTypeDefault value
anumberundefined
bnumberundefined
epsilonnumber0.0001

Returns ​

boolean

Defined In ​

packages/blocks/src/surface-block/utils/math-utils.ts:54