linearly v0.32.0Docs


linearly v0.32.0 / scalar / sign

Function: sign()

sign(x): number

Returns the sign of the x, indicating whether x is positive, negative or zero.

Parameters

x: number

The numeric expression to test

Returns

number

Defined in

src/scalar.ts:72open in new window