COMPLEX

COMPLEX returns the complex value x + yI.
Read syntax diagramSkip visual syntax diagram
>>-COMPLEX(x,y)------------------------------------------------><

Abbreviation: CPLX

x and y
Real expressions.

If x and y differ in base, the decimal argument is converted to binary. If they differ in scale, the fixed-point argument is converted to floating-point. The result has the common base and scale.

If fixed-point, the precision of the result is given by the following:
  (min(N,max(p1-q1,p2-q2)+max(q1,q2)),max(q1,q2))
In this example, (p1,q1) and (p2,q2) are the precisions of x and y, respectively, and N is the maximum number of digits allowed.

After any necessary conversions have been performed, if the arguments are floating-point, the result has the precision of the longer argument.






Published: 23 December 2018