语言

Single.LessThan(Single, Single) 操作员

定义

返回一个值,该值指示指定的 Single 值是否小于另一个指定 Single 值。

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

实现

注解

该方法 LessThan 为值定义小于运算符 Single 的操作。

适用于