WorksheetFunction.Delta Method
Tests whether two values are equal. Returns 1 if number1 = number2; returns 0 otherwise.
Namespace: Microsoft.Office.Interop.Excel
Assembly: Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)
Syntax
'Declaration
Function Delta ( _
Arg1 As Object, _
Arg2 As Object _
) As Double
'Usage
Dim instance As WorksheetFunction
Dim Arg1 As Object
Dim Arg2 As Object
Dim returnValue As Double
returnValue = instance.Delta(Arg1, Arg2)
double Delta(
Object Arg1,
Object Arg2
)
Parameters
Arg1
Type: System.ObjectNumber1 - the first number.
Arg2
Type: System.ObjectNumber2 - the second number. If omitted, number2 is assumed to be zero.
Return Value
Type: System.Double
Remarks
Use this function to filter a set of values. For example, by summing several Delta functions you calculate the count of equal pairs. This function is also known as the Kronecker Delta function.
If number1 is nonnumeric, Delta returns the #VALUE! error value.
If number2 is nonnumeric, Delta returns the #VALUE! error value.