Double.IsNegative(Double) 方法

定义

确定指定的值是否为负值。

public:
 static bool IsNegative(double d) = System::Numerics::INumberBase<double>::IsNegative;
public:
 static bool IsNegative(double d);
public static bool IsNegative(double d);
static member IsNegative : double -> bool
Public Shared Function IsNegative (d As Double) As Boolean

参数

d
Double

双精度浮点数。

返回

true 如果值为负值,则为负值; false 否则。

实现

适用于