Bug 104709 - XOR-Function with wrong results
Summary: XOR-Function with wrong results
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
5.1.4.2 release
Hardware: x86 (IA32) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-12-16 10:34 UTC by ludwig.bedau
Modified: 2016-12-16 21:11 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ludwig.bedau 2016-12-16 10:34:39 UTC
Description:
XOR-Function with a odd number of "TRUE" parameter is "TRUE", should be "FALSE" except of one "TRUE" parameter
example: XOR(1,1,1) = TRUE should be FALSE

Steps to Reproduce:
1.use the XOR function with an odd number of "TRUE" parameter
2.
3.

Actual Results:  
incorrect behavior of xor function

Expected Results:
xor is TRUE only when one parameter is TRUE, otherwise it is FALSE


Reproducible: Always

User Profile Reset: No

Additional Info:


User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0
Comment 1 JoNi 2016-12-16 11:50:07 UTC
(In reply to ludwig.bedau from comment #0)
> Actual Results:  
> incorrect behavior of xor function
> 
> Expected Results:
> xor is TRUE only when one parameter is TRUE, otherwise it is FALSE

it works as documented
https://help.libreoffice.org/Calc/Logical_Functions#XOR
Comment 2 MM 2016-12-16 12:55:30 UTC
If you have one argument set to true(), it returns true. With a second one it returns false. With a third one it returns true again and so on.

But, if I check out the example from here: https://support.office.com/en-us/article/XOR-function-1548d4c2-5e47-4f77-9a92-0533bba14f37

=XOR(3>0,2<9) This one should return true, but returns false with calc. So who's right here ?!
Comment 3 JoNi 2016-12-16 14:44:00 UTC
(In reply to MM from comment #2)
> But, if I check out the example from here:
> https://support.office.com/en-us/article/XOR-function-1548d4c2-5e47-4f77-
> 9a92-0533bba14f37
> =XOR(3>0,2<9) This one should return true, but returns false with calc. So
> who's right here ?!
congratulations you found a bug in the Excel online help. please report it to their bugzilla or whatever...

Excel 2016 got it correct result: FALSE
Comment 4 Buovjaga 2016-12-16 21:11:13 UTC
Let's close, then.