Function Math Complex Class

Addit

"Addition" Add two real and/or complex numbers.

Signature (Visual Basic / VBA)

Public Function Addit( _
      ByVal vX As Variant _
    , ByVal vY As Variant _
    ) As Variant

Code Example

    Addit(3.3, 4.76) = 8.06
    Addit(5.2, "6|7") = "11.2|7"
    Addit("-8|-9", 5) = "-3|-9"
    Addit("1|2", "4|5") = "5|7"
    IsNull(Addit("One", "Two")) = True
    IsNull(Addit(2, Null)) = True
    IsNull(Addit(Null, Null)) = True

Parameters

Parameter Description
vX First of two numbers that are to be added together. Function returns Null if vX is Null or cannot be fixed up to a real or complex number (as defined by the ComplexStringToReals function). Complex numbers are represented within strings as "R|I" where R is the real part and I is the imaginary part.
vY Second of two numbers that are to be added together. Function returns Null if vY is Null or cannot be fixed up to a real or complex number.