Go to: Synopsis. Return value. MEL examples.
abs
int|float|vector
abs is undoable, NOT queryable, and NOT editable.
Returns the absolute value of its argument. In the case of a vector argument, it returns a vector composed of the absolute value of of its components.int | When the argument is an integer |
float | When the argument is a float |
vector | When the argument is a vector |
$f=-123; abs $f; // Result: 123 // abs <<-1, -2.432, 555>>; // Result: <<1, 2.432, 555>> //