Int32.IsPositive(Int32) 方法

定义

确定值是否为正值。

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

参数

value
Int32

返回

Boolean

true 如果 value 为正,则为正;否则为 false

实现

注解

返回值 false 并不表示 IsNegative(TSelf) 将返回 true。 非零b的复数不是正数或负数 a + bi

适用于