Double.Inequality(Double, Double) 運算子

定義

傳回值,這個值表示兩個指定的 Double 值是否不相等。Returns a value that indicates whether two specified Double values are not equal.

public:
 static bool operator !=(double left, double right);
public static bool operator != (double left, double right);
static member op_Inequality : double * double -> bool
Public Shared Operator != (left As Double, right As Double) As Boolean

參數

left
Double

要比較的第一個值。The first value to compare.

right
Double

要比較的第二個值。The second value to compare.

傳回

如果 leftright 不相等,則為 true;否則為 falsetrue if left and right are not equal; otherwise, false.

備註

Inequality 方法會定義 Double 值的不等比較運算子。The Inequality method defines the inequality operator for Double values.

適用於