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

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5346

Stringified number with lots of places gets wrong value





------- Additional Comments From [EMAIL PROTECTED]  2002-02-04 14:52 -------
The problem with double-based conversions in the past has been that they've 
involved division at different places and resulting loss of precision. Your 
proposal seems to have the same problem, and I would expect it to fail in 
simliar ways.

What we really need is to find out what the "official" conversion algorithm for 
doubles is, and then determine whether we can come up with an efficient java 
implementation of it. The current accumulate-as-int-then-scale technique is our 
best effort so far in that regard. 

I agree that the overflow problem needs to be fixed (that's relatively easy) and 
that the question of whether we ought to be handling additional digits also 
needs to be addressed (though doing so is probably going to cost us some 
performance, and doing so without subtlely breaking the algorithm is 
nontrivial).

Reply via email to