Table of Contents

SGN

Syntax

N  = SGN( X )

Parameters

X is a number

Description

The sign of X: -1 if X < 0, 0 if X = 0, and +1 if X > 0.