Steps to reproduce: In a cell, type "1-" or even " 1-" (without the "") Expected result: the input should be interpreted as text, and whatever the f**k I have typed should be stored in the cell Observed result: The cell now contains the number -1, which is neither what I typed, nor the result of interpreting the input in any sensible way. "1-" is neither a formula that yields -1 as a result, nor a representation of the number -1.
Also, "1+" becomes "1"
(In reply to teo8976 from comment #0) > Steps to reproduce: > In a cell, type "1-" or even " 1-" (without the "") > > Expected result: > the input should be interpreted as text, and whatever the f**k I have typed > should be stored in the cell > First warning on the language. See https://wiki.documentfoundation.org/QA/Bugzilla/Policies_and_Procedures Entirely unhelpful.
To me this is a toss up whether we want that behavior or not. Setting to ux-advice so they can decide if it's a bug. FWI - you can get the desired behavior by just formatting the cell as text. The algorithm assumes you're using calc for numbers (which is generally a decent assumption) so if you only have 1- it's treating it like a number, different users will have different expectations as to whether that assumption is right or wrong. So, default behavior should be decided by UX crew.
Yeah but what do you mean by "treat like a number"?? If you type "1 ljsbf" you don't expect it to be transformed into "1", do you? (it doesn't happen) If you type "lsdls" you don't expect it to become "0", do you? (it doesn't happen) So why should "1+" become 1, and even more absurd, why should "1-" become -1? In other words, Calc usually "assumes you are entering numbers" **unless** you enter something that cannot be interpreted as a number. In what notation is "1+" a representation of 1 as a number, and "1-" a representation of -1 as a number? Your argument is valid for an input like "1e2" (which one may enter with the intention of entering text but is also 100 in exponential notation), but "1-" is not a number in any way, I don't see how anybody could expect it to be interpreted as -1.
So i tested other spreadsheet apps and Excel, WPS, Quattro Pro and Google Docs kept it as text, while Calligra and Gnumeric changed it to a number. I'd assume the best person to explain this behaviour and whether its a bug is a Calc dev. @Eike: Any thoughts?
I've made the summary a bit more realistic ;)
I can confirm that the behavior is present in Version: 5.3.1.2 (x64) Build ID: e80a0e0fd1875e1696614d24c32df0f95f03deb2 CPU Threads: 4; OS Version: Windows 6.19; UI Render: default; Layout Engine: new; Locale: en-US (en_US); Calc: group I changed the status to NEW. The testing done by Yousuf Philips (jay) is enough for me. Compatibility with MS Excel is a priority.
** Please read this message in its entirety before responding ** To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year. There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present. If you have time, please do the following: Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/ If the bug is present, please leave a comment that includes the information from Help - About LibreOffice. If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice. Please DO NOT Update the version field Reply via email (please reply directly on the bug tracker) Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not appropriate in this case) If you want to do more to help you can test to see if your issue is a REGRESSION. To do so: 1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from http://downloadarchive.documentfoundation.org/libreoffice/old/ 2. Test your bug 3. Leave a comment with your results. 4a. If the bug was present with 3.3 - set version to 'inherited from OOo'; 4b. If the bug was not present in 3.3 - add 'regression' to keyword Feel free to come ask questions or to say hello in our QA chat: https://kiwiirc.com/nextclient/irc.freenode.net/#libreoffice-qa Thank you for helping us make LibreOffice even better for everyone! Warm Regards, QA Team MassPing-UntouchedBug
Dear teo8976, To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year. There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present. If you have time, please do the following: Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/ If the bug is present, please leave a comment that includes the information from Help - About LibreOffice. If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice. Please DO NOT Update the version field Reply via email (please reply directly on the bug tracker) Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not appropriate in this case) If you want to do more to help you can test to see if your issue is a REGRESSION. To do so: 1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from https://downloadarchive.documentfoundation.org/libreoffice/old/ 2. Test your bug 3. Leave a comment with your results. 4a. If the bug was present with 3.3 - set version to 'inherited from OOo'; 4b. If the bug was not present in 3.3 - add 'regression' to keyword Feel free to come ask questions or to say hello in our QA chat: https://kiwiirc.com/nextclient/irc.freenode.net/#libreoffice-qa Thank you for helping us make LibreOffice even better for everyone! Warm Regards, QA Team MassPing-UntouchedBug
still repro in Version: 7.1.0.0.alpha0+ (x64) Build ID: 15988fe00c4f49ae32ab2d5cf3c16495ab6e1d59 CPU threads: 4; OS: Windows 6.1 Service Pack 1 Build 7601; UI render: Skia/Vulkan; VCL: win Locale: ru-RU (ru_RU); UI: en-US Calc: CL
There's a reason for this behaviour. In some locales negative currency amounts are displayed with a trailing minus sign and of course it's expected that such data is accepted as numeric input. We maybe could make that locale dependent.
(In reply to Eike Rathke from comment #11) > There's a reason for this behaviour. In some locales negative currency > amounts are displayed with a trailing minus sign and of course it's expected > that such data is accepted as numeric input. We maybe could make that locale > dependent. I support that to make it locale dependent. Adding needsUXeval to have a broader input for this.
You can force 1- with cell format as text. But this would still be interpreted as a number. Since I don't see any good use case for 1- being pure text I vote for WF.
I assume the program should make the work for users as efficient as possible. If somebody types a non-number-only input into a cell, then Calc should not change the input but the cell format to text e.g. for "1-" and "1+" in English or German. If I want a number I've to use the format that is used in that region! If I want -1 I must write -1.
(In reply to Heiko Tietze from comment #13) > You can force 1- with cell format as text. But this would still be > interpreted as a number. Since I don't see any good use case for 1- being > pure text I vote for WF. +1
Eike explained the reason in comment 11 and there are easy "workarounds". Let's resolve this as NAB.