|
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)
Syntaxpublic static bool IsZero(
this double d
)
<ExtensionAttribute>
Public Shared Function IsZero (
d As Double
) As Boolean
public:
[ExtensionAttribute]
static bool IsZero(
double d
)
[<ExtensionAttribute>]
static member IsZero :
d : float -> bool
Parameters
- d
- Type: SystemDouble
Limit for checking towards zero.
Return Value
Type:
BooleanTrue 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