<-- Previous || Up || Next -->

Imag Part Function
Math Complex Class

Public Function ImagPart( _
    ByVal vX As Variant _
    ) As Variant

"Imaginary Part"
Return the iamginery part of a complex (or real) number.
Function returns 0 (zero) if the argument is a real number.

    ImagPart(45) = 0
    ImagPart("23|45") = 45
    ImagPart("23|-45.6") = -45.6
    IsNull(ImagPart(Null)) = True
See also:
    RealPart Function
    ComplexStringToReals Function
vX: The number whose imaginary part is to be returned. 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.

Copyright 1996-1999 Entisoft
Entisoft Tools is a trademark of Entisoft.