Public Function RealToComplex( _
ByVal vReal As Variant _
, ByVal vImag As Variant _
) As Variant RealToComplex(2, -3) = "2|-3"
RealToComplex(6, 0) = 6
RealToComplex(4, Null) = 4
IsNull(RealToComplex(Null, 5)) = TrueSee also: ComplexStringToReals Function
IsComplex Function
RealPart Function
ImagPart FunctionvReal: The real part of the complex number that will be returned. Function returns Null if vReal is Null or cannot be fixed up to a number. vImag: The imaginary part of the complex number being constructed. vImag defaults to 0 (zero) if it is Null or cannot be fixed up to a number.
Copyright 1996-1999 Entisoft
Entisoft Tools is a trademark of Entisoft.