Previous: 4.45.2.56. SecH function To the Table of Contents Next: 4.45.2.58. SinH function
4.45.2.56. SecH function Table of Contents 4.45.2.58. SinH function

- 4.45.2.57. -
Table of Contents
4. Standard Units
4.45. Math - Extended Mathematics unit
4.45.2. Math Unit Procedures and Functions
4.45.2.57. Sgn function


4.45.2.57. 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: 4.45.2.56. SecH function To the Table of Contents Next: 4.45.2.58. SinH function
4.45.2.56. SecH function Table of Contents 4.45.2.58. SinH function

- 4.45.2.57. -