Previous Topic

Next Topic

Sgn - MaxBasic Function

Sgn(Number: Number): Number

Sign of number.

If number is:

Sgn returns

Greater than zero

+1

Equal to zero

0

Less than zero

-1

Sgn function syntax has these named arguments:

Parameter

Description

Number

Required. Number to be evaluated.

See Also

Number Functions

Book Contents

Book Index