linearly v0.32.0Docs


linearly v0.32.0 / scalar / abs

Function: abs()

abs(x): number

Returns the absolute value of a number (the value without regard to whether it is positive or negative). For example, the absolute value of -5 is the same as the absolute value of 5.

Parameters

x: number

A numeric expression for which the absolute value is needed.

Returns

number

Defined in

src/scalar.ts:74open in new window