Back to functions

abs


absolute value

Returns the absolute value of a number/expression

Usage: nerdamer("abs(x)")


Parameters

expression x Returns the appropriate value if possible otherwise it returns the function with the simplified expression

Returns

Expression

EXAMPLES:
var x = nerdamer('abs(-x)');
console.log(x.toString());
var y = nerdamer('abs(-2-x)');
console.log(y.toString());
OUTPUT:
Back to functions