signed int
signed int
- Subject: signed int
- From: Dev WO <email@hidden>
- Date: Wed, 21 Dec 2005 18:01:00 +0100
Hi list,
I don't really know where to look for, but here's my issue:
I've got a calculation based on the number (int) of product in stock.
This calculation should lead to negative number sometimes, for
example, if I have a product A which was sold 6 times, if the stock
is 0, the calculation should give -6...but it gives 6?!
Here's a snippet:
--------
quantity available of product A: 0
quantity requested: 6
virtual stock calculation = "quantity available" - "quantity requested"
--------
This should give -6 but not.
I printed the step to the log to see if it was a number formatting
issue in my wocomponent, but it also displays 6 instead of -6 in the
log.
Any pointer?
Thanks
Xavier
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden