Multiply by -1 ?

Jenny

-----Original Message-----
From: Chad Gray [mailto:[EMAIL PROTECTED]
Sent: 17 September 2006 17:48
To: CF-Talk
Subject: Negative and positive


I am working on an inventory system where people put in a number of items that 
are being taken out of inventory and put into inventory.

The users are entering positive numbers.

I need to store the number as a negative in the database if inventory is being 
removed.

How do I convert the number they enter to a negative before I insert it into 
the database?

I am sure it is something simple I am just a little burnt out.
Thanks!




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:253375
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to