Help Center

CSgnfunction

Returns the sign of a complex number.

Numeric DatatypesfunctionAfxComplex.incdocumented

Syntax

FUNCTION CSgn (BYREF z AS _complex) AS LONG

Description

Returns the sign of this complex number.
If number is greater than zero, then CSgn returns 1.
If number is equal to zero, then CSgn returns 0.
If number is less than zero, then CSgn returns -1.

Reference

  • Include file AfxComplex.inc
  • Defined in AfxNova/AfxComplex.inc:1513
  • Documented in Numeric Datatypes/Complex Numbers Procedures.md
  • Topic: Complex Numbers Procedures