bugGNU Octave - Bugs: bug #47744, printf family of functions does...


bug #47744: printf family of functions does not support %b[ouxX] or %t[ouxX] conversions

Submitted by:  Mike Miller <mtmiller>
Submitted on:  Wed 20 Apr 2016 09:26:03 PM UTC  
Category:  Octave Function Severity:  1 - Wish
Priority:  5 - Normal Item Group:  Matlab Compatibility
Status:  Postponed Assigned to:  None
Originator Name:  Open/Closed:  Open
Release:  dev Operating System:  Any

Add a New Comment(Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Wed 20 Apr 2016 09:51:23 PM UTC, comment #2:

And the "%tx" format is especially annoying because it conflicts with POSIX, which treats "t" to mean an integer argument of type ptrdiff_t.

Mike Miller <mtmiller>
Project Administrator
Wed 20 Apr 2016 09:31:40 PM UTC, comment #1:

I see this was briefly discussed in bug #44245 but dismissed, I think it's better to track this separately and leave it for someone to implement if they wish.

I agree these are confusing because they look like integer conversions, but they actually operate on floating point arguments. But this appears to be the only way in Matlab to print the byte values of a floating point value.

Mike Miller <mtmiller>
Project Administrator
Wed 20 Apr 2016 09:26:03 PM UTC, original submission:

For Matlab compatibility, the printf family of functions should support the following conversion specifiers:

I'm not completely sure, but I guess they mean it should interpret the variable's storage location as if it were an integer and display the integer value in the appropriate base.

They give these two examples:

These are the same values that Octave gives for something like

Mike Miller <mtmiller>
Project Administrator


(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 mtmiller (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.




    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-04-20 mtmiller Severity3 - Normal => 1 - Wish
        StatusNone => Postponed

    Back to the top

    Powered by Savane 3.3