Public Function Absolute( _ ByVal vX As Variant _ ) As Variant
Absolute(-2.3) = 2.3 Absolute(0) = 0 Absolute(2.3) = 2.3 Absolute(2.3) = 2.3 Absolute("1|1") = 1.4142135623731 Absolute("4|5") = 6.40312423743285 Absolute("-4|-3") = 5See also:
Arg Function Neg Function Sign Function Abs Function (Visual Basic)vX: Either a real number whose absolute value is to be returned, or a complex number whose norm is to be returned. Function returns Null if vX is Null or cannot be fixed up to a real/complex number (as defined by the ComplexStringToReals function).
Copyright 1996-1999 Entisoft
Entisoft Tools is a trademark of Entisoft.