Single.Equality(Single, Single) 運算子
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
回傳一個值,表示兩個指定 Single 值是否相等。
public:
static bool operator ==(float left, float right);
public:
static bool operator ==(float left, float right) = System::Numerics::IEqualityOperators<float, float, bool>::op_Equality;
public static bool operator ==(float left, float right);
static member ( = ) : single * single -> bool
Public Shared Operator == (left As Single, right As Single) As Boolean
參數
- left
- Single
第一個要比較的值。
- right
- Single
要比較的第二個值。
傳回
true若 left 且right相等;否則 。 false
實作
備註
此 Equality 方法定義了數值的 Single 等號運算子。