[Libreoffice-bugs] [Bug 130725] ImpSvNumberInputScan::StringToDouble may produce inaccurate result
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Wed Feb 19 21:02:15 UTC 2020
https://bugs.documentfoundation.org/show_bug.cgi?id=130725
--- Comment #8 from Mike Kaganski <mikekaganski at hotmail.com> ---
(In reply to Eike Rathke from comment #7)
> Would using rtl::math::stringToDouble() there yield better results? If
> applicable..
Unfortunately no,
https://ci.libreoffice.org/job/gerrit_linux_clang_dbgutil/53635/console shows
that unit test is failing with it - see "Value must be the nearest
representation of decimal 0.0042" message in the log. The method uses the same
technique, so no wonder :-(
Accurate and performant conversion of string to double is *not* a trivial task,
unfortunately.
--
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/20200219/5be00413/attachment.htm>
More information about the Libreoffice-bugs
mailing list