Complex.IsRealNumber(Complex) Method

Definition

Determines if a value represents a real number.

C#
public static bool IsRealNumber(System.Numerics.Complex value);

Parameters

value
Complex

The value to be checked.

Returns

true if value is a real number; otherwise, false.

Implements

Remarks

This function returns true for a complex number a + bi where b is zero.

Applies to

Product Versions
.NET 7, 8, 9