Public Function Square( _ ByVal vX As Variant _ ) As Variant
Square(3.4) = 11.56 Square(-3.4) = 11.56 Square("-2|-3") = "-5|12" Square("-2|3") = "-5|-12" IsNull(Square(Null)) = TrueSee also:
Mult Function Power Function Sqrt Function * Operator (Visual Basic) ^ Operator (Visual Basic)vX: The number whose square is returned; the number is multiplied by itself. 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.