Re: ABS(sequence)?
- Posted by Roderick Jackson <rjackson at CSIWEB.COM> Feb 10, 1999
- 442 views
Hmm... you could square the number/sequence, then take the square root = of the=20 result. I doubt that would help in the speed department, though. AFAIK, the only (lower-math) operation that returns one value regardless = of sign is squaring. Otherwise you're probably stuck with a loop or IF = statement. Rod Jackson ---------- From: Tor Bernhard Gausen[SMTP:tor.gausen at C2I.NET] Sent: Tuesday, February 09, 1999 9:24 PM Subject: ABS(sequence)? I ran into this silly little problem, but I'm not able to figure it out... At least not tonight. How do I get the absolute value of a variable? I can not use the IF statement, since I need to operate on sequences (and setting up a loop is not very tempting, since I feel the need for speed). Any help would be greatly appreciated. Thanks, Tor Bernhard Gausen