Double.GreaterThan(Double, Double) 运算符

定义

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

public:
 static bool operator >(double left, double right);
public static bool operator > (double left, double right);
static member ( > ) : double * double -> bool
Public Shared Operator > (left As Double, right As Double) As Boolean

参数

left
Double

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

right
Double

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

返回

Boolean

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

注解

GreaterThan方法为值定义大于运算符的运算 DoubleThe GreaterThan method defines the operation of the greater-than operator for Double values.

适用于