octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #64692] colon range includes an extra value


From: John W. Eaton
Subject: [Octave-bug-tracker] [bug #64692] colon range includes an extra value
Date: Sat, 23 Sep 2023 12:34:07 -0400 (EDT)

Update of bug #64692 (project octave):

                  Status:          Ready For Test => In Progress            

    _______________________________________________________

Follow-up Comment #30:

I backed out the changes mentioned in comment #28.

After looking at this some more, it seems to me that the special cases in
Range.cc for floating point ranges could be handled differently that will make
the code both easier to understand and more compatible with Matlab.

If we set the tolerance to zero, doesn't that break compatibility with Matlab
for things like 1.8:0.05:1.9?  For me, with the patch from comment #29 the
result of that expression doesn't include 1.9 as it apparently does in Matlab
and that happens with or without the changes mentioned in comment #28.

We might still want the warnings, but having them doesn't mean we can
disregard compatibility issues.

Marking as in progress.


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?64692>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]