Int16.IsPositive(Int16) 方法

定義

判斷值是否為正數。

public:
 static bool IsPositive(short value) = System::Numerics::INumberBase<short>::IsPositive;
public static bool IsPositive (short value);
static member IsPositive : int16 -> bool
Public Shared Function IsPositive (value As Short) As Boolean

參數

value
Int16

要檢查的值。

傳回

true 如果 value 為正數,則為 ,否則為 false

實作

備註

false 傳回值不表示 IsNegative(TSelf) 會傳回 true 。 非零 b 的複數 a + bi 不是正數或負數

適用於