Returns a value indicating whether both values represent the same value.
Namespace:
Enkoni.Framework
Assembly:
Enkoni.Framework (in Enkoni.Framework.dll) Version: 1.3.0.1
Syntaxpublic static bool Equals(
this double source,
double obj,
double comparisonFactor,
DoubleCompareOption compareOption
)
<ExtensionAttribute>
Public Shared Function Equals (
source As Double,
obj As Double,
comparisonFactor As Double,
compareOption As DoubleCompareOption
) As Boolean
public:
[ExtensionAttribute]
static bool Equals(
double source,
double obj,
double comparisonFactor,
DoubleCompareOption compareOption
)
[<ExtensionAttribute>]
static member Equals :
source : float *
obj : float *
comparisonFactor : float *
compareOption : DoubleCompareOption -> bool
Parameters
- source
- Type: SystemDouble
The first value to compare. - obj
- Type: SystemDouble
The second value to compare. - comparisonFactor
- Type: SystemDouble
The factor that must be taken into account. If compareOption is set to
Margin, the comparison factor will be treated as an absolute margin. If compareOption is
set to SignificantDigits the comparison factor will be treated as the number of digits that must be
examined will comparing. Note that the comparison factor in that case will be truncated to an integer. - compareOption
- Type: Enkoni.FrameworkDoubleCompareOption
Defines the method that must be used to compare the double values.
Return Value
Type:
Boolean if the two values are equal; otherwise,
.
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