[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #31579] Floating point mod function does not m
From: |
John W. Eaton |
Subject: |
[Octave-bug-tracker] [bug #31579] Floating point mod function does not match Matlab |
Date: |
Tue, 09 Nov 2010 06:17:40 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.15) Gecko/20101028 Iceweasel/3.5.15 (like Firefox/3.5.15) |
Update of bug #31579 (project octave):
Status: None => Fixed
Open/Closed: Open => Closed
_______________________________________________________
Follow-up Comment #2:
I checked in the following change which I think makes mod and rem behave
approximately the same as in Matlab:
http://hg.savannah.gnu.org/hgweb/octave/rev/94d9d412a2a0
I say approximately because I can't tell from the description in the Matlab
docs precisely how "within roundoff error of an integer" is computed, so I
took my best guess.
With this change, mod (2.1, 0.1) returns 0 and I get 2500 for q in the test
case from the original report, which I think is bug #31512
<https://savannah.gnu.org/bugs/?31512>, not 31514.
As I think my changeset fixes this problem, I'm closing this report.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?31579>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/