|
From: | Nicholas Jankowski |
Subject: | [Octave-bug-tracker] [bug #63089] dec2bin gives wrong answer for negative int16 |
Date: | Tue, 25 Oct 2022 09:02:41 -0400 (EDT) |
Follow-up Comment #19, bug #63089 (project octave): in matlab 2022b: >> dec2bin(+2.7) ans = '10' >> dec2bin(-2.7) ans = '11111101' >> dec2bin(+3.1) ans = '11' >> dec2bin(-3.1) ans = '11111101' >> dec2hex(+2.7) Error using dec2hex First argument must contain finite integers. >> dec2hex(-2.7) Error using dec2hex First argument must contain finite integers. >> dec2hex(+3.1) Error using dec2hex First argument must contain finite integers. >> dec2hex(-3.1) Error using dec2hex First argument must contain finite integers. _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?63089> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |