bugGNU Octave - Bugs: bug #60854, dec2hex with character input


bug #60854: dec2hex with character input

Submitter:  Guillaume <gyom>
Submitted:  Tue 29 Jun 2021 09:00:14 PM UTC
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Matlab Compatibility
Status:  None Assigned to:  None
Originator Name:  Guillaume Open/Closed:  * Open
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup

Tue 29 Jun 2021 09:00:14 PM UTC, original submission:  

According to the Matlab documentation, the first input of dec2hex can be a character array:
and it will be converted as integers.

>> dec2hex('.')
ans =

I would change the input conversion in dec2base.m:

if (islogical (d) || ischar (d))
    d = double (d);

but the documentation mentions "dec2hex treats characters as their Unicode".

Guillaume <gyom>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by gyom (Submitted the item)

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only project members can vote.


    No changes have been made to this item

    Back to the top

    Powered by Savane 3.12