Chris Beaumont's IDL Library

Download source code

single page | use frames     summary     class     fields     routine details     file attributes

./

sign.pro

topsign

utilities

result = sign(x)

Returns the sign of x

Return value

1 if x > 0, -1 if x < 0, 0 if x = 0

Parameters

x in required

A number

Author information

History:

June 2009: Written by Chris Beaumont April 2010: Vectorized. cnb.

File attributes

Modifcation date: Sat Apr 17 03:18:29 2010
Lines: 22