Double.IsNegative(Double) 方法

定義

判斷指定的值是否為負數。

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

參數

d
Double

雙精確度浮點數。

傳回

如果值為負數,則為 true;否則為 false

實作

適用於