Bug 93841 - Logical results (boolean) instead of numeric ones in calc
Summary: Logical results (boolean) instead of numeric ones in calc
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-01 18:03 UTC by Paolo Cavallini
Modified: 2015-09-07 08:06 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
file required (7.04 KB, application/vnd.oasis.opendocument.spreadsheet)
2015-09-02 04:36 UTC, Paolo Cavallini
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Paolo Cavallini 2015-09-01 18:03:19 UTC
In calc, I'm getting logical results (true/false) instead of numeric results for simple formulas like =2/4.
It worked fine until recently, possibly until the last upgrade (I'm on 4.4.5.2 now).
This influences also existing spreadsheets, so I'm basically stuck.
Debia sid.
Tried to ask for assistance on IR and on 
https://ask.libreoffice.org/en/question/56957/logical-results-boolean-instead-of-numeric-ones-in-calc/
without reply, so I resolved to open a ticket.
Comment 1 Joel Madero 2015-09-01 18:27:23 UTC
Please attach a sample document. Setting to NEEDINFO. Once you attach a simple document please set to UNCONFIRMED.
Comment 2 Paolo Cavallini 2015-09-02 04:36:42 UTC
Created attachment 118324 [details]
file required

Please find it herewith attached.
I do not think it matters much, however: the files which worked in previous versions stopped working now.
Thanks for looking into this.
Comment 3 raal 2015-09-02 06:29:58 UTC
Set format of the cell to Numeric or All and recalculate the sheet (ctrl+shift+F9). Cell format is boolean. Closing as notabug.
Comment 4 Paolo Cavallini 2015-09-02 06:36:33 UTC
Done, the result is 1, even if not formatted as boolean.
The issue is not formatting, but the type of calculation, which tests the logical validity of the expression, not its numeric result.
Not resolved here.
Comment 5 Paolo Cavallini 2015-09-02 06:39:41 UTC
Please note that the same issue remains when removing user config (~/.config/libreoffice), so it does not seem a local issue.
Comment 6 raal 2015-09-02 07:19:03 UTC
(In reply to Paolo Cavallini from comment #4)
> Done, the result is 1, even if not formatted as boolean.
> The issue is not formatting, but the type of calculation, which tests the
> logical validity of the expression, not its numeric result.
> Not resolved here.

Did you recalculate the sheet (ctrl+shift+F9) ?
Comment 7 Paolo Cavallini 2015-09-02 07:22:03 UTC
Yes
Comment 8 Joel Madero 2015-09-02 13:46:01 UTC
Can't confirm.

Ubuntu 15.04 x64
LibreOffice 5.0.0.5

A hard recalculate resolves the issue. If one more QA member fails to confirm then this is environment specific and thus NOTOURBUG. I'll try to find another person to test. I would suggest asking ask.libreoffice.org as well.
Comment 9 Cor Nouws 2015-09-02 13:59:03 UTC
(In reply to raal from comment #3)
> Set format of the cell to Numeric or All and recalculate the sheet
> (ctrl+shift+F9). Cell format is boolean. Closing as notabug.

I confirm this.
Comment 10 Joel Madero 2015-09-02 14:11:21 UTC
With a third QA member not being able to confirm the issue (hard recalculate resolves the problem after setting the format to number) I am closing this as NOTABUG.

Please do the following:
1. Test with 5.0.0.5
2. Fresh profile;

If those fail please reach out to user mailing list or ask site. Thanks
Comment 11 Paolo Cavallini 2015-09-02 14:30:13 UTC
Thanks for this. Unfortunately I cannot test with LO5, as it is blocked by GCC5 transition in Debian sid.
I'm positive is an issue with my version.
Comment 12 Joel Madero 2015-09-02 14:53:26 UTC
I just tested with 4.4.5.2 on Ubuntu 15.04 and it works fine (same as before, set to number, hard recalc, everything is fine)
Comment 13 Paolo Cavallini 2015-09-02 14:57:07 UTC
So I'm lost: retried once more, I confirm that here it does not work. It seems a local issue, but I have no clue about what to check.
Thanks.
Comment 14 Paolo Cavallini 2015-09-05 09:51:29 UTC
Further note: I noticed that LO inserts extra spaces in the formula every time I open it, like:
=    2   +   2
Could this depend from some parsing lib?
Comment 15 Paolo Cavallini 2015-09-07 08:06:36 UTC
I confirm that the issue has disappeared in LO5