Skip to content

Latest commit

 

History

History
51 lines (34 loc) · 1.95 KB

M_EgonsoftHU_Extensions_Bcl_NumberExtensions_IsZero_1.md

File metadata and controls

51 lines (34 loc) · 1.95 KB

IsZero(Decimal) Method

Determines if a value is zero.

Definition

Namespace: EgonsoftHU.Extensions.Bcl
Assembly: EgonsoftHU.Extensions.Bcl (in EgonsoftHU.Extensions.Bcl.dll) Version: 3.0.1+8c729d04d0fcab10705485e5626d4fdebeaa818d

C#

public static bool IsZero(
	this decimal value
)

VB

<ExtensionAttribute>
Public Shared Function IsZero ( 
	value As Decimal
) As Boolean

Parameters

  Decimal
The value to be checked.

Return Value

Boolean
true if value is zero; otherwise, false.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Decimal. 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).

Remarks

This function treats both positive and negative zero as zero and so will return true for +0.0 and -0.0.

See Also

Reference

NumberExtensions Class
IsZero Overload
EgonsoftHU.Extensions.Bcl Namespace