Indicates whether a numeric value is positive, negative, or zero.
function Sign(const AValue: Integer): TValueSign; overload; function Sign(const AValue: Int64): TValueSign; overload; function Sign(const AValue: Double): TValueSign; overload;
TValueSign Sign(const int AValue); TValueSign Sign(const Int64 AValue); TValueSign Sign(const Double AValue);
Math
Use Sign to test the sign of a numeric value. Sign returns
0 if AValue is zero.
1 if AValue is greater than zero.
-1 if AValue is less than zero.
Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
|
What do you think about this topic? Send feedback!
|