Description: Using format "TT.MM.JJJJ HH:MM:SS,000000000000000000" values that have a zero fractional part get formatted with fewer digits in the fractional part than those whose fractional part is non-zero. Of course, using this kind of format is not a common use case. I stumbled on this while analysing round-off errors in the context of bug 127334.
How to reproduce:
- Open a new spreadsheet
- Make column A wide enough so it can display the formatted values
- Select column A, i.e. the cells A1:A1048576
- Set the number format of this cell range to "TT.MM.JJJJ HH:MM:SS,000000000000000000"
- Fill the range with time values starting vom 10.9.2019 using a time increment of 0.1 seconds. For this purpose open "Tabelle -> Zellen ausfüllen -> Reihen". Set "Reihentyp" to "Linear", "Anfangswert" to "10.9.2019" and "Zunahme" to "00:00:00,1". Press ok. It takes a few moments until the values will show up.
Actual behaviour: The representation of the values representing full seconds is by three digits shorter than that of the other values when using version 188.8.131.52. If you use Version: 184.108.40.206 (x64) all representations use the same length except that in cell A1 where the last three digits are replaced by squares (probably indicating illegal characters).
Expected behaviour: The representation of all values should use the same number of digits.
Please attach a sample file.
For roughly the same reasons I explained in https://bugs.documentfoundation.org/show_bug.cgi?id=127476#c2 I do not want to upload an example file. The real problems are bug 127334 and bug 127477. I mentioned this bug so someone that cares about bug 127334 may keep an eye on this and may occasionally fix it. Note: The time the light needs to travel the size of an atom is longer than the durations that this format allows to express. That is not something I usually have to deal with.
Sample file is required.
Set to NEEDINFO.
Change back to UNCONFIRMED after you have provided the document.
Created attachment 159869 [details]
Example file created using Windows version 220.127.116.11
Created attachment 159870 [details]
Example file created using Linux version 18.104.22.168
I don't know what the bug is, you are going beyond limits with decimal places. Precision in calc is limited to fifteen numbers plus sing, incluiding decimal places, In fact reducing decimal places to fifteen doesn't show the supposed issue.
Previous versions of LibreOffice showed a different behaviour when you went beyond the limit with decimal places. I studied this behaviour in the context of bug 127334. So I reported the changed behaviour in the hope that this may provide insights helpful for fixing this bug.
Nevertheless I think the observed behaviour is a bug of its own right: LibreOffice should either disable the use of so many decimal places or show a consistent and documented behaviour if it allows formats like this - they may be sometimes useful. A decision which option to choose could be made in the context of an ongoing clarification process (bug 127170).
Ok, discussed with Mike K. and he said we should keep this open
it's more an oddity than a bug, but, @Albrecht Müller is right (and has sharp eyes) it doesn't have to and shouldn't be like this, the less such inconsistencies develop the less stupid questions arise, and the less confusion is injected into other procedures
not astonishing it's not only TT.MM.JJJJ HH:MM:SS,000000000000000000 affected but also
and formats with differenct 'day part' like JJJJ-MM-TT (YYYY-MM-DD) too