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: Arun Giridhar
Subject: [Octave-bug-tracker] [bug #63089] dec2bin gives wrong answer for negative int16
Date: Tue, 25 Oct 2022 13:49:37 -0400 (EDT)

Update of bug #63089 (project octave):

                  Status:             In Progress => Ready For Test         

    _______________________________________________________

Follow-up Comment #22:

Thanks. Pushed the stable version here:
https://hg.savannah.gnu.org/hgweb/octave/rev/7880af7a3b3f

Marking as Ready For Test.

The input duplication is because dec2bin and dec2hex allow negative numbers
but dec2base doesn't. I'll see how to merge that...

For the default branch, I am considering a feature addition to allow dec2base
to handle both negative inputs and non-integer inputs, aiming to be fully
backwards-compatible with existing use. The trial patch is here:
https://octave.discourse.group/t/negative-and-fractional-inputs-for-dec2base/3326
but it didn't get any feedback earlier.


    _______________________________________________________

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]