Description

Arithmetic unary operator to compute the absolute value of values.

Return Type

A McObject object.  

A McObject instance holding the absolute value of Operand. The returned result will be of the type of the Operand. It will also be the same shape as Operand, except that it will always be an array, even if the Operand is a scalar (generally there is no reason to use these vector operators unless you are dealing with arrays).

Syntax

object.McAbs (Operand)

The McAbs Method syntax has these parts:

PartDescription
objectAn expression evaluating to an object of type McOMGlobal.
OperandRequired. A Variant value.

Values used to compute absolute value. May be a scalar or array of any arithmetic type. It may also be an McObject instance of an arithmetic type.

Remarks

The absolute value of the values in the Variant Operand are computed and the result is returned. The operand must be an arithmetic type.

Exceptions

Operand must a scalar or array of some arithmetic type. Operands may be arrays of VARIANT, but if they are, all elements must be of the same arithmetic type. E.g., Array( 1, 2) is OK, but Array( 1.5, 2) is not legal.