DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43940>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=43940





------- Additional Comments From [EMAIL PROTECTED]  2007-11-24 05:42 -------

... and one more correction ;-)

The scale should also depend on whether Math.abs(intPart) > 1.

Increasing the number of iterations by a factor of 10, the difference with 
Double.toString() remains the 
same. Double.toString() is sometimes faster, probably as a result of the values 
generated by 
Math.random().
The difference with DecimalFormat.format(), on the other hand increases. 
1650-1700ms vs. almost 
4000ms for the latter. I suspect this difference to be caused by the fact that 
DecimalFormat.format() is 
an instance method, where the other two are statics.


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

Reply via email to