Math387.Sgn / Sgnf Method

Overload List

#SignatureDescription
1Int32 Sgn(TCplx Z)Signum.
2Int32 Sgn(TSCplx Z)
3Int32 Sgn(Double X)Signum.
4Int32 Sgn(Int32 X)
5Int32 Sgnf(Single X)

Overload 1: Int32 Sgn(TCplx Z)

Signum.

#NameTypeDescription
1ZTCplxscalar

Returns: Int32 - the signum of X. Signum(X) is 1 for X > 0, equal to zero for X = 0 and -1 for X < 0.

Overload 2: Int32 Sgn(TSCplx Z)

#NameTypeDescription
1ZTSCplxscalar

Returns: Int32

Overload 3: Int32 Sgn(Double X)

Signum.

#NameTypeDescription
1XDoublescalar

Returns: Int32 - the signum of X. Signum(X) is 1 for X > 0 , equal to zero for X = 0 and -1 for X < 0.

Overload 4: Int32 Sgn(Int32 X)

#NameTypeDescription
1XInt32

Returns: Int32

Overload 5: Int32 Sgnf(Single X)

#NameTypeDescription
1XSinglescalar

Returns: Int32