db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "RPost" <rp0...@pacbell.net>
Subject Re: [PATCH] (DERBY-123) Derby incorrectly rounds double values down during insert into NUMERIC
Date Fri, 04 Feb 2005 16:17:03 GMT
> "Daniel John Debrunner" wrote:

> Even using Double.toString() in itself creates an extra two objects . . .

Dan's right but interestingly, it is even more convoluted.

Double.toString() in Double.java is "public String toString() { return

And then String.valueOf(value) in turn is "public static String
valueOf(double d) { return Double.toString(d);}

Which means it winds up calling the Double.toString(theValue) that you are
now going to call anyway.

View raw message