[Libreoffice-bugs] [Bug 143974] Basic function CStr is failing to properly convert integers after 41 steps in a for loop

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Tue Sep 28 20:30:31 UTC 2021


https://bugs.documentfoundation.org/show_bug.cgi?id=143974

--- Comment #8 from Mike Kaganski <mikekaganski at hotmail.com> ---
(In reply to Andreas Heinisch from comment #7)

Your analysis is completely correct. It's OK to use doubles; doubles allow to
work with integers up to 2^52. The problem is in conversion to string. And we
*badly* need an accurate method for that.

Unfortunately, conversion of double to string is a difficult thing, affected by
multitude of factors like decimal/thousand separators, national numerals, and
so on. So there's no function in STL that would fit our variety of different
needs perfectly.

But myftoa looks a candidate for eradication. It's simple enough that
rtl_math_doubleToString could replace (and then we would deal with one less
imperfect implementations).

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20210928/d04a5872/attachment.htm>


More information about the Libreoffice-bugs mailing list