[Libreoffice-bugs] [Bug 121978] Problem with new function SECOND

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Sat Dec 8 11:17:21 UTC 2018


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

--- Comment #4 from gmolleda at us.es ---
I think of two possible solutions, or have two functions: SECOND("00:00:08,99")
with result 9 and SECONDNOTROUNDED("00:00:08,99") that return 8. Or a function
with a second parameter optional rounding: =SECOND("00:00:08,99" [, BOOLEAN
ROUND]), default BOOLEAN ROUND is TRUE.

=SECOND("00:00:08,99") = SECOND("00:00:08,99",TRUE) = 9
=SECOND("00:00:08,99", FALSE) = 8

The good thing would be that computer doing the subtraction correctly, but I
imagine that they are intrinsic problems to the floating-point calculations of
the processors.

-- 
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/20181208/ed838686/attachment.html>


More information about the Libreoffice-bugs mailing list