Single.LessThan(Single, 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

如果 left 小於 right,則為 true;否則為 false

備註

LessThan方法會定義值小於運算子的運算 Single

適用於