Skip to content
hugh greene edited this page Jun 20, 2022 · 1 revision

Notation

Description

Returns the absolute value of the input. So, abs(-12.5) = 12.5, and abs(12.5) = 12.5.

Parameters

  • x: The number whose absolute value is to be returned.

Return Values

double: Returns the absolute value of a given number.

Example Call

// demonstrates obtaining the absolute value of a given number
var xa;
xa = abs(x);

NOTOC

Category:Function:Real

Clone this wiki locally