abs()


Syntax

abs(x)

Returns

Number

Description

Returns the absolute (positive) value of the input. Negative signs are removed, ensuring the result is always zero or greater.

Arguments

  • x (Number): The numerical value or expression to evaluate.

Examples

  • abs(-10) results in 10.
  • abs(10) results in 10.
  • abs(Pitch) returns the magnitude of the pitch input regardless of direction.