RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
Math.TValueSign Type

TValueSign defines the Sign returned value.

Pascal
TValueSign = -1..1;
C++
-1..1 TValueSign;

The Sign routine determines whether a number is negative, zero or positive. It returns the result in a TValueSign value as follows :

Value 
Associated constant 
Meaning 
-1  
Negative number.  
0  
Zero.  
+1  
Positive number.  

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!