real(value)

Real part of a complex number.

valueThe input.
return valueThe real part of the input.

In case of matrices, the result will be calculated elementwise.

real(2+4i)