### Sgn (number)

Basic and Crystal syntax.

##### Argument

Number value

##### Returns

Returns 1, 0 or -1

##### Action

Sgn returns the sign of a given number: 1 if number > 0, 0 if number is 0, and -1 if number < 0.

##### Examples

The following examples are applicable to both Basic and Crystal syntax:

`Sgn (-10)`

Returns -1.

`Sgn (0)`

Returns 0.

`Sgn (10)`

Returns 1.

##### Comment

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

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