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

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

[Octave-bug-tracker] [bug #65000] dec2hex produces incorrectly formatted


From: Arun Giridhar
Subject: [Octave-bug-tracker] [bug #65000] dec2hex produces incorrectly formatted output for arrays of numbers less than 16
Date: Sat, 9 Dec 2023 07:43:22 -0500 (EST)

Follow-up Comment #2, bug#65000 (group octave):

I recall this one. It was fixed by the loop at the end of this:  
https://hg.savannah.gnu.org/hgweb/octave/rev/1f3f7e874203

and then slightly improved by this:
https://hg.savannah.gnu.org/hgweb/octave/rev/a098cc74d9a5

The topic of this bug report is covered in two BISTs near the end:


## Test that the output is of the correct size.
## Next line should return a column vector:
%!assert (dec2hex (0:15), "0123456789ABCDEF"(:))
## Next line should return a row vector:
%!assert (dec2hex (uint64 (18364758544493064720)), "FEDCBA9876543210")


The reason had been the matrix indexing rules as described in bug #63833.



    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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