To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=104377
User regina changed the following:
What |Old value |New value
================================================================================
CC|'' |'er,regina'
--------------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
--------------------------------------------------------------------------------
Keywords| |oooqa
--------------------------------------------------------------------------------
Resolution| |WORKSFORME
--------------------------------------------------------------------------------
------- Additional comments from [email protected] Thu Aug 20 19:49:40
+0000 2009 -------
The rule for MOD is "Computes the remainder of a/b. The remainder has the same
sign as b." Therefore you get MOD(-5;4)= 3 due to the calculation -5 = (-2)*4
+3. Using the other solution -5 = (-1) * 4 -1 would give a negative remainder.
The rule for QUOTIENT is "Return the integer portion of a division, e.g.,
QUOTIENT(-14;5) is -2."
So QUOTIENT(-5;4)=-1 because -5/4 = -1,25
So currently OOo follows the spec. For any changes first the spec has to be
changed. But that is out of scope of this issue tracker.
The help describes exactly, what is calculated.
You find the rules in
http://www.oasis-open.org/committees/download.php/32469/OpenDocument-formula-20090508.odt
@Eike: Please have a look, whether to propose to OASIS that the spec should be
changed so that a = QUOTIENT(a;b)*b + MOD(a;b) in all cases.
---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]