語言

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 操作。

適用於