db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel John Debrunner <...@debrunners.com>
Subject Re: [Fwd: Re: [PATCH] (DERBY-123) Derby incorrectly rounds double values down during insert into NUMERIC]
Date Fri, 04 Feb 2005 17:05:47 GMT

>>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
>String.valueOf(value);}
>
>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.
>
>  
>
To be clear I was referring to the static Double.toString(double) method.

Dan.


Mime
View raw message