RealPart (FPScript)

21.09.2021

Forms the real part of real or complex numbers.

Syntax

RealPart(Number)

 

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

Part

Description

Number

The real or complex number for which the real 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 real part of a real number is the number itself.

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

RealPart((3, 4))

Results in 3.

RealPart(3.5)

Results in 3.5.

See Also

ImaginaryPart Function

Real Operator

Share article or send as email:

You might be interested in these articles