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: Nicholas Jankowski
Subject: [Octave-bug-tracker] [bug #63089] dec2bin gives wrong answer for negative int16
Date: Mon, 24 Oct 2022 13:43:37 -0400 (EDT)

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

just checking compatibility:


>> a.b = 1

a = 

  struct with fields:

    b: 1

>> dec2bin(a)
Error using dec2bin
D must be numeric.
 
>> dec2bin(-1.5)

ans =

    '11111110'

so it seems at least the last item is compatible. 



    _______________________________________________________

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]