Single.LessThan(Single, Single) Single.LessThan(Single, Single) Single.LessThan(Single, Single) Single.LessThan(Single, Single) Operator

定义

返回一个值,该值指示指定的 Single 值是否小于另一个指定的 Single 值。Returns a value that indicates whether a specified Single value is less than another specified Single value.

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 Single Single Single

要比较的第一个值。The first value to compare.

right
Single Single Single Single

要比较的第二个值。The second value to compare.

返回

如果 left 小于 right,则为 true;否则为 falsetrue if left is less than right; otherwise, false.

注解

LessThan方法定义小于运算的运算符比Single值。The LessThan method defines the operation of the less-than operator for Single values.

适用于