Skip to content

API > @blocksuite/blocks > sign

Function: sign ​

sign(number): 1 | -1

Parameters ​

ParameterType
numbernumber

Returns ​

1 | -1

Defined In ​

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