vtf-logo

Algorithm: Sign


Functions

template<typename T>
int ads::sign (const T x)
 This does what you think it does. The number type must be less than and greater than comparable.

Function Documentation

template<typename T>
int ads::sign ( const T  x  )  [inline]

This does what you think it does. The number type must be less than and greater than comparable.

Parameters:
x is a number.
Returns:
1, 0 or -1 if x is positive, zero or negative.


Generated on Fri Aug 24 12:55:37 2007 for Algorithms and Data Structures Package by  doxygen 1.4.7