bugGNU Octave - Bugs: bug #50334, number literals 0b, 0x not...


bug #50334: number literals 0b, 0x not mentioned in the documentation

Submitted by:  Ernst Reissner <ernstreissner>
Submitted on:  Fri Feb 17 09:07:14 2017  
Category: DocumentationSeverity: 3 - Normal
Priority: 3 - LowItem Group: Documentation
Status: FixedAssigned to: Kai Torben Ohlhus <siko1056>
Originator Name: Ernst ReissnerOpen/Closed: Closed
Release: 4.2.0Operating System: Any

Add a New Comment (Rich MarkupRich Markup):

You are not logged in

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


(Jump to the original submission Jump to the original submission)

Mon Feb 20 16:44:25 2017, comment #7:

@Rik: thank you very much for the quick fix.

Pushed: http://hg.savannah.gnu.org/hgweb/octave/rev/0881e1671490.

Closing this item.

Kai Torben Ohlhus <siko1056>
Project MemberIn charge of this item.
Mon Feb 20 06:02:04 2017, comment #6:

I fixed the problem with the parser and incorrect interpretation of binary complex numbers here (http://hg.savannah.gnu.org/hgweb/octave/rev/08042580fe93).

Rik <rik5>
Project Administrator
Mon Feb 20 00:22:40 2017, comment #5:

Indeed, but this is really another bug.

Your text is good, I think we shall push it in that form.

Ernst Reissner <ernstreissner>
Sun Feb 19 17:13:31 2017, comment #4:

Kai - yes, looks like a bug to me. I think the parser is only counting ones in the string, so the trailing "i" or "j" is seen as an additional bit.

Mike Miller <mtmiller>
Project Administrator
Sun Feb 19 14:15:35 2017, comment #3:

Thank you for your patch. I reviewed your text (file #39788) and made some clarifications from my point of view. If you agree or propose a 2nd review, I can push your changes.

I noticed maybe another bug. Can you confirm:

Not as expected:

To open another bug report?

Kai Torben Ohlhus <siko1056>
Project MemberIn charge of this item.
Sat Feb 18 21:25:13 2017, comment #2:

I submitted a fix for this bug and also for 50305.
Hope this is ok.

(file #39784)

Ernst Reissner <ernstreissner>
Fri Feb 17 13:36:21 2017, comment #1:

Thanks for the report. This should be treated together with bug #50305.

@Ernst Reissner: Would you like to find a suitable place in the manual https://www.gnu.org/software/octave/doc/interpreter/ and think about a good documentation of the features?

Kai Torben Ohlhus <siko1056>
Project MemberIn charge of this item.
Fri Feb 17 09:07:14 2017, original submission:

in 4.2.0 number literals like 0b1001 for binary representation
and 0xFF for hex representation are added but still not documented.

Ernst Reissner <ernstreissner>


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

Attach File(s):

Attached Files


   bug dependencies.

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by rik5 (Updated the item)
  • -unavailable- added by mtmiller (Posted a comment)
  • -unavailable- added by siko1056 (Posted a comment)
  • -unavailable- added by ernstreissner (Submitted the item)
  • -unavailable- added by ernstreissner

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

    Only project members can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follow 12 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon Feb 20 16:44:25 2017siko1056StatusPatch Submitted=>Fixed
    Mon Feb 20 05:14:27 2017rik5Summarynumber literals 0b, 0x not mentioned in the docus=>number literals 0b, 0x not mentioned in the documentation
    Sun Feb 19 14:13:26 2017siko1056Attached File-=>Added bugs50305_50334_review1.patch, #39788
    Sun Feb 19 01:00:51 2017siko1056StatusConfirmed=>Patch Submitted
      Assigned toNone=>siko1056
    Sat Feb 18 21:25:13 2017ernstreissnerAttached File-=>Added bugs50305_50334.patch, #39784
    Fri Feb 17 13:36:21 2017siko1056Priority5 - Normal=>3 - Low
      Item GroupNone=>Documentation
      Dependencies-=>Depends on bugs #50305
    Fri Feb 17 09:07:14 2017ernstreissnerCarbon-Copy-=>Added -unavailable-

    Back to the top

    Powered by Savane 3.1-cleanup1