Double.IsNegative(Double) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
判斷指定的值是否為負數。
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
。
實作
適用於
意見反應
https://aka.ms/ContentUserFeedback。
即將推出:在 2024 年,我們將隨著內容的意見反應機制逐步淘汰 GitHub 問題,並以新的意見反應系統來取代。 如需詳細資訊,請參閱提交並檢視相關的意見反應