ABS()
function returns an absolute number, i.e., the positive value of a number. The data type of the returned value will depend on the data type of the value passed to the ABS()
function.
ABS()
function is as follows:
ABS()
function requires one argument:
x
: An expression that evaluates to a number.ABS()
function can be used to obtain the absolute value of a negative number:
ABS()
function can be used with an expression to obtain the absolute value of the result:
ABS()
function can be used with a table to obtain the absolute values of all numbers in a specific column: