The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....



Signum


Unit:SDL_math1
Class:None
Declaration:function Signum (a: double): integer;

The function Signum evaluates the sign of the floating point number a and returns either +1 or -1. Please note that the function Signum differs from the function Sign of the Delphi unit Math in the way how a zero argument is treated: Signum returns +1 if a equals 0 (Sign returns 0).

Example: The term "Signum (-3.3)" returns the value -1.


Last Update: 2012-Oct-20