
20.03.2011, 09:06
|
 |
Let Me Show You
|
|
Регистрация: 30.04.2010
Адрес: Северодвинск
Сообщения: 5,426
Версия Delphi: 7, XE5
Репутация: 59586
|
|
Есть готовая функция Sign:
Цитата:
Indicates whether a numeric value is positive, negative, or zero.
Unit
Math
Category
Arithmetic routines
Delphi syntax:
type TValueSign = -1..1;
function Sign(const AValue: Double): TValueSign; overload;
function Sign(const AValue: Integer): TValueSign; overload;
function Sign(const AValue: Int64): TValueSign; overload;
|
__________________
Пишу программы за еду.
__________________
|