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: Jeremie Knuesel
Subject: [Octave-bug-tracker] [bug #64692] colon range includes an extra value
Date: Mon, 18 Sep 2023 11:55:18 -0400 (EDT)

Follow-up Comment #6, bug #64692 (project octave):

[comment #2 comment #2:]
> Speaking for myself, this behavior seems to be less astonishing than strict
application of limit rules due to floating point artifacts.
>
> What do others think?

One thing that can be quite surprising I think is when someones defines c=a:b
(with a<=b), and then some code that assumes c(end) <= b. The current behavior
means that such code is not correct.

Regarding the note about 1.8 : 0.05 : 1.9 it's a bit odd since 1.8 + 0.05 +
0.05 gives a value larger than 1.9 anyway.



    _______________________________________________________

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]