<<

Contents

Search

>>

 

SGN

 

 

Function

 

 

Syntax:

SGN(<Value>)

 

<Value> = <NUM-EXPRESSION>

 

Meaning:

Returns the sign of the numeric expression <Value>:

 

If <Value> = 0, 0 is returned.

If <Value> > 0, 1 is returned.

If <Value> < 0, -1 is returned.

 

Parameter:

Value

Numeric expression

 

Sample:

SIGN% = SGN(AMOUNT)

 

See also:

ABS