Signature (Visual Basic / VBA)
Public Function Subtract( _
ByVal vX As Variant _
, ByVal vY As Variant _
) As Variant
Code Example
Subtract(3.3, 4.76) = -1.46
Subtract(5.2, "6|7") = "-0.8|-7"
Subtract("-8|-9", 5) = "-13|-9"
Subtract("1|2", "4|5") = "-3|-3"
Parameters
| Parameter | Description |
|---|---|
| vX | The number from which vY is subtracted. 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 | The number that will be subtracted from vX. Function returns Null if vY is Null or cannot be fixed up to a real or complex number. |