[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:42:40 UTC 2020


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

--- Comment #9 from Mike Kaganski <mikekaganski at hotmail.com> ---
[1] does not use floating-point operations. It is MIT, so might be used. It is
not guaranteed to give the same result as library functions, but my
understanding is that the difference should be only in cases where the value is
strictly in the middle between two possible representations, i.e. both are
closest possible. Might worth a try using as o3tl::from_chars, to have the same
signature, to allow easy transition to std:: version when it's available?

[1] https://github.com/grzegorz-kraszewski/stringtofloat

-- 
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/c431b3d6/attachment.htm>


More information about the Libreoffice-bugs mailing list