I thought it was only a "Object" wrapper around a double number..
I changed to this:

public BigDecimal totalPrice() {
                BigDecimal qta = new BigDecimal(quantity);
                return (qta.multiply(product().prezzo()));

        }

The bad thing about @sum binding is that now I have the warning :p

Francesco

On 27/ago/09, at 09:17, Mike Schrag wrote:

I use BigDecimal. But I can't multiply an int with a BigDecimal, so I get the doubleValue from it..
you create a BigDecimal out of the int and .multiply the original with it to create the resulting BigDecimal ... converting to double is a really bad idea -- you WILL get burned by it.

ms

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/fra.makaveli%40gmail.com

This email sent to [email protected]

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to