Well I've never used any of the other ones, but I've often used Abs()
in straightforward business applications.
One use that springs to mind is in securities trading, where if you've
bought say 5 million, your position is "long 5 million", and if you've
sold 5 million your position is "short 5 million". You might store these
in the database as 5000000 and -5000000 respectively but use Abs() when
displaying them as positive numbers in different columns.
Similarly in presenting financial accounts, you want to put a negative
number in brackets, not with a minus sign in front.
Nick
**********************************************************************
Information in this email is confidential and may be privileged.
It is intended for the addressee only. If you have received it in error,
please notify the sender immediately and delete it from your system.
You should not otherwise copy it, retransmit it or use or disclose its
contents to anyone.
Thank you for your co-operation.
**********************************************************************
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists