Re: Combining 2 Fields
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.