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

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

[Octave-bug-tracker] [bug #63089] dec2bin gives wrong answer for negativ


From: Markus Mützel
Subject: [Octave-bug-tracker] [bug #63089] dec2bin gives wrong answer for negative int16
Date: Mon, 24 Oct 2022 18:33:01 -0400 (EDT)

Follow-up Comment #18, bug #63089 (project octave):

IIUC, we chose to differ from Matlab in this particular case. And we shouldn't
change that behavior (at least for a .dot release. But I'd prefer if we
wouldn't in general).

See e.g. the top of `dec2base` for a possible implementation of the check.

It would also make sense to think of a way that doesn't duplicate the checks
for positive input. If that is too intrusive, we could do that part of the
change on the default branch only.


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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