### Abs (x)

Basic and Crystal syntax.

##### Arguments

x is the Number for which you want the Absolute Value returned.

##### Returns

Absolute value of x.

##### Action

Abs returns the value of x, ignoring any negative values.

##### Examples

`Abs(1.50)`

Returns 1.50.

`Abs(-1.50)`

Returns 1.50.

`Abs(10 - 7)`

Returns 3.

`Abs(7 - 10)`

Returns 3.

Rem Basic syntax
If Abs(37 - {file.FIELD}) > 1 Then
formula = "Maintenance, Temperature Check"
End If

//Crystal syntax
If Abs(37 - {file.FIELD}) > 1 Then
"Maintenance, Temperature Check"
Else
"" ;

This flags instances where a laboratory heat block has a temperature variation greater than +/- 1 degree C.

##### Comments

This function is designed to work like the Visual Basic function of the same name.

###### Related topics

Formula 1

Seagate Software, Inc. http://www.seagatesoftware.com Please send comments to: techpubs@seagatesoftware.com