Single.LessThanOrEqual(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

備註

LessThanOrEqual方法會定義值的小於或等於運算子運算 Single

適用於