en:docs:dos:cmd:basic:sgn

This is an old revision of the document!


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.