Purpose
Return value
Syntax
=IMREAL(inumber)
- inumber - A string representing a complex number.
How to use
The IMREAL function returns the real part of a complex number. For example:
=IMREAL("4+3i") // returns 4
Explanation
A complex number like "2-5i" is drawn as an arrow in the complex plane, where the horizontal axis corresponds to the real part of the number, and the vertical axis corresponds to the imaginary part.
The IMREAL function returns the real part of the number.
=IMREAL("2-5i") // returns 2
Notes:
- IMREAL returns a #NUM error when the input does not represent a valid complex number.