Previous: SecH function To the Table of Content Next: SinH function

- 4.45.2.57 -
Standard Units
Math Unit
Math Unit Procedures and Functions

Sgn function

Targets: MS-DOS, OS/2, Win32


Math Unit

Returns the sign of a variable.

Declaration:
function Sgn(X: Extended): Longint;
function Sgn(X: Longint): Longint;
Remarks:
Use Sgn to obtain the sign of X. For example:
 Sgn(3.2) = 1
 Sgn(-5)  = -1
 Sgn(0)   = 0



Previous: SecH function To the Table of Content Next: SinH function
SecH function Table of Content SinH function

- 4.45.2.57 -