[Libreoffice-bugs] [Bug 127476] New: Rounding behaviour of YEAR and SECOND function is inconsistent

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Tue Sep 10 13:47:48 UTC 2019


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

            Bug ID: 127476
           Summary: Rounding behaviour of YEAR and SECOND function is
                    inconsistent
           Product: LibreOffice
           Version: 6.0.4.2 release
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Calc
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: albrecht.mueller at astrail.de

Description: The results of the YEAR and the SECOND function may be
inconsistent. The reason is probably that the functions use different rounding
strategies. 

How to reproduce: Open some spreadsheet and enter „=SECOND("1999-12-31
23:59:59,9")“ and „=YEAR("1999-12-31 23:59:59,9")“ in two different cells. 
Actual behaviour: You will get 0 seconds and year 1999. This seems to imply
that the SECOND function rounds to the next second, while the YEAR function
rounds down.

Expected behaviour: A consistent behaviour would be to either get 59 seconds
and year 1999 (round down) or 0 seconds and year 2000 (round to the next
second). The latter variant probably is the way how spreadsheet applications
usually work.

-- 
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/20190910/7b57a1bd/attachment.html>


More information about the Libreoffice-bugs mailing list