Signature (Visual Basic / VBA)
Public Function Div( _
ByVal vX As Variant _
, ByVal vY As Variant _
) As Variant
Code Example
Div(3.3, 4.76) = 0.69327731092437
Div(5.2, "6|7") = "0.367058823529412|-0.428235294117647"
Div("-8|-9", 5) = "-1.6|-1.8"
Div("1|2", "4|5") = "0.341463414634146|7.31707317073171E-02"
Parameters
| Parameter | Description |
|---|---|
| vX | The dividend; number which is to be divided by the other number. 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 divisor; number of times that vX is to be divided. Function returns Null if vY is Null or cannot be fixed up to a real or complex number. |
Notes & Version History
| Note | If vY is 0 (zero), the function returns Null to represent the "division by zero" error. |