[thelist] A Silly CF Question
Frank
framar at interlog.com
Mon May 8 00:33:55 2000
>> >How do I convert a negative number (-11) to a positive number (11)?
>> Hah! Found it: Abs()
>> Is there a better way?
At 11:49 AM -0400 5/7/00, aardvark wrote:
>mathematically? no.
>from a math perspective, you want the absolute value,
>which that function appears to do... that
>is mathemetically the most efficient way to convert them...
Thanks. There's not only that, however. I'm always pushing myself to
see if I can make my code more succinct, and clearer.
Since I'm relatively new to Cold Fusion, I find that it usually takes
about three passes before I can bring it to an acceptable length.
At the moment, I'm making some really serious modifications to
someone else's code, and I'm noticing that clarity and legibility
didn't seem to be a big priority for them. The difference between out
styles is immediately apparent.
Hmmm. I feel another post coming on.
--
Frank Marion Loofah Communications
frank@loofahcom.com http://www.loofahcom.com