Determines if a value represents zero or a positive real number.
Namespace: EgonsoftHU.Extensions.Bcl
Assembly: EgonsoftHU.Extensions.Bcl (in EgonsoftHU.Extensions.Bcl.dll) Version: 3.0.1+8c729d04d0fcab10705485e5626d4fdebeaa818d
C#
public static bool IsPositiveOrZero(
this int value
)
VB
<ExtensionAttribute>
Public Shared Function IsPositiveOrZero (
value As Integer
) As Boolean
- Int32
- The value to be checked.
Boolean
true if value represents zero or a positive real number; otherwise, false.
In Visual Basic and C#, you can call this method as an instance method on any object of type Int32. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
This function treats both positive and negative zero as zero and so will return true for +0.0
and -0.0
.
This function returning false does not imply that IsNegative(Int32) will return true.
NumberExtensions Class
IsPositiveOrZero Overload
EgonsoftHU.Extensions.Bcl Namespace