[Libreoffice-bugs] [Bug 126481] An option for Rounding mode in ScInterpreter::ScRound
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Thu Aug 1 13:30:38 UTC 2019
https://bugs.documentfoundation.org/show_bug.cgi?id=126481
Eike Rathke <erack at redhat.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |WONTFIX
--- Comment #4 from Eike Rathke <erack at redhat.com> ---
Problem is the actual underlying floating point value of =(105 * 1.75 + 50) /
1.1 is 212.49999999999997 and only for display rounded to 212.5 as it is within
the accuracy margin, you can check with =RAWSUBTRACT(212.5;(105 * 1.75 + 50) /
1.1) that produces 2.8421709430404E-14
There's not much we can do here (except always displaying the "real" floating
point value and get whining users). For 0 decimals (round to integer) ROUND()
effectively calls std::round() to avoid bad "correction" resulting in wrong
values, see bug 96821.
--
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/20190801/ae142c37/attachment.html>
More information about the Libreoffice-bugs
mailing list