• 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