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: [email protected]
Reporter: [email protected]
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._______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs