[Top][All Lists]

[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:  

and then slightly improved by this:

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:


Message sent via Savannah

reply via email to

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