• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
signed int
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: signed int
      • From: "Jerry W. Walker" <email@hidden>
  • Prev by Date: Re: Getting past ISDOWNGRADE error
  • Next by Date: Re: signed int
  • Previous by thread: Re: Getting past ISDOWNGRADE error
  • Next by thread: Re: signed int
  • Index(es):
    • Date
    • Thread