ImaginaryPart (FPScript)

21.09.2021

Forms the imaginary part of real or complex numbers.

Syntax

ImaginaryPart(Number)

 

The syntax of the ImaginaryPart function consists of the following parts:

Part

Description

Number

The real or complex number for which the imaginary part is determined.

All data structures are allowed. All numeric data types are permitted, except calendar time und time span.

Remarks

The result has the same structure and unit as the argument Number.

For signals, only the Y component is considered. If Number is real, then the result is of the same data type. Otherwise, the result is of the corresponding real data type for the complex argument.

The imaginary part of a real number is always 0.

If the argument is a list, then the function is executed for each element of the list and the result is also a list.

Available in

FlexPro Basic, Professional, Developer Suite

Examples

ImaginaryPart((3, 4))

Results in 4.

ImaginaryPart(1.2)

Results in 0.

See Also

RealPart Function

Imag Operator

Share article or send as email:

You might be interested in these articles