Click or drag to resize

UtilsExtensionsIsZero Method

Checks whether a number is close to zero.

Namespace:  Karamba.Utilities
Assembly:  KarambaCommon (in KarambaCommon.dll) Version: 2.2.0.4 (2.2.0.4)
Syntax
public static bool IsZero(
	this double d
)

Parameters

d
Type: SystemDouble
Limit for checking towards zero.

Return Value

Type: Boolean
True if close enough to zero (1e-10).

Usage Note

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