BigInteger.IsNegative(BigInteger) 方法
本文內容
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
判斷值是否為負值。
public:
static bool IsNegative(System::Numerics::BigInteger value) = System::Numerics::INumberBase<System::Numerics::BigInteger>::IsNegative;
C#
public static bool IsNegative(System.Numerics.BigInteger value);
static member IsNegative : System.Numerics.BigInteger -> bool
Public Shared Function IsNegative (value As BigInteger) As Boolean
- value
- BigInteger
要檢查的值。
true
如果 value
為負數,則為 ,否則為 false
。
傳 false
回值不表示會傳 IsPositive(TSelf) 回 true
。 非零 b
的複數a + bi
不是正數或負數
適用於
產品 | 版本 |
---|---|
.NET | 7, 8, 9, 10 |