linearly v0.32.0Docs


linearly v0.32.0 / scalar / normalize

Function: normalize()

normalize(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:222open in new window