• 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
Re: Combining 2 Fields
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Combining 2 Fields


  • Subject: Re: Combining 2 Fields
  • From: Marek Wawrzyczny <email@hidden>
  • Date: Mon, 3 Mar 2003 16:15:53 +1100

Hmmm, given that you have kvc methods for your table and that amount and tax are of BigDecimal type and wouldn't you just:

double amountIncTax = amount.doubleValue() + tax.doubleValue();


On Tuesday, Jun 3, 2003, at 16:00 Australia/Sydney, Adam Rice wrote:

Hey,

Just having a little trouble remembering exactly how I combine to fields.

To elaborate, in my table, and therefore Java file, I have a field called "amount" and one called "tax". I want to combine the two to make an amount inc. tax. I have set variables in a new method for the amount, tax and a combination variable but now, for the life of me, I can't remember how I used to combine the variables.

Adam Rice
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.




Marek Wawrzyczny

software engineer
-------------------------->
ish group pty ltd
7 Darghan St Glebe 2037 Australia
phone +61 2 9660 1400   fax +61 2 9660 7400
http www.ish.com.au | email email@hidden
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Combining 2 Fields (From: Adam Rice <email@hidden>)

  • Prev by Date: Combining 2 Fields
  • Next by Date: Re: docRoot webresources path string
  • Previous by thread: Combining 2 Fields
  • Next by thread: Internal Data Type for BOOL
  • Index(es):
    • Date
    • Thread