Abs Procedure

Returns the absolute value of the expression dx.

Syntax

[ dResult = ] Abs ( dx )

The Abs procedure syntax has the following parts:

 

Name

Type

Description

dResult

Double

Result

dx

Val Double

Input value

Comments

dx must be a numeric expression (double/integer). Abs also operates on integer and floating point variables.

Example

dx = -5.1

df = Abs(dx)

! now dx is -5.1 and df is 5.1

See Also

Int