語言

Single.GreaterThan(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_GreaterThan;
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。

實作

備註

此 GreaterThan 方法定義了值 Single 的大於算子的運算。

適用於