Single.Equality(Single, Single) 运算符

定义

返回一个值,该值指示两个指定的 Single 值是否相等。

public:
 static bool operator ==(float left, float right);
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

要比较的第二个值。

返回

Boolean

如果 leftright 相等,则为 true;否则为 false

注解

Equality方法为值定义相等运算符 Single

适用于