[Libreoffice-bugs] [Bug 138220] calc: calculation: roundup: rounddown: fail in 7.1 alpha

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Fri Nov 20 14:25:33 UTC 2020


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

zcrhonek <zcrhonek at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |bibisected, bisected,
                   |                            |regression
                 CC|                            |erack at redhat.com,
                   |                            |zcrhonek at gmail.com
     Ever confirmed|0                           |1
            Version|7.1.0.0.alpha0+             |6.4.0.3 release
             Status|UNCONFIRMED                 |NEW

--- Comment #2 from zcrhonek <zcrhonek at gmail.com> ---
This seems to have begun at the below commit.
Adding Cc: to Eike Rathke ; Could you possibly take a look at this one?
Thanks

4ac0c8c10e88ac1ea470606e0d6973f8171c8516 is the first bad commit
commit 4ac0c8c10e88ac1ea470606e0d6973f8171c8516
Author: Jenkins Build User <tdf at pollux.tdf>
Date:   Thu Mar 28 23:23:07 2019 +0100

    source sha:edcbe8c4e02a67c74ec6f85f28899431dbfa0765

https://gerrit.libreoffice.org/c/core/+/69762
tdf#124286 fix annoying rounding error.

In case of ROUNDDOWN and ROUNDUP, it is possible that seemingly clear decimal
values are rounded unexpectedly (from the user's POV). This is caused by the i
decimal to binary to decimal conversions.
By rounding to 12 significanr digits before calling the round-down of -up
function, most of these unexpected roundings are eliminated.

Change-Id: Ia19181383b77e1ff40a067c4a1cea1ece0955871
Reviewed-on: https://gerrit.libreoffice.org/69762
Tested-by: Jenkins
Reviewed-by: Eike Rathke <erack at redhat.com>

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


More information about the Libreoffice-bugs mailing list