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

 
 

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

Submitter:  Ernst Reissner <ernstreissner>
Submitted:  Fri 17 Feb 2017 09:07:14 AM UTC
   
 
Category:  Documentation Severity:  3 - Normal
Priority:  3 - Low Item Group:  Documentation
Status:  Fixed Assigned to:  siko1056
Originator Name:  Ernst Reissner Open/Closed:  * Closed
Release:  * 4.2.0 Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Mon 20 Feb 2017 04:44:25 PM UTC, 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>
Group Member
Mon 20 Feb 2017 06:02:04 AM UTC, 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>
Group administrator
Mon 20 Feb 2017 12:22:40 AM UTC, 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 19 Feb 2017 05:13:31 PM UTC, 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>
Group Member
Sun 19 Feb 2017 02:15:35 PM UTC, 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:


>> 0b1 + 0b1i
ans =  1 + 2i


Not as expected:


ans =  1 + 1i


To open another bug report?

Kai Torben Ohlhus <siko1056>
Group Member
Sat 18 Feb 2017 09:25:13 PM UTC, comment #2: 

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

(file #39784)

Ernst Reissner <ernstreissner>
Fri 17 Feb 2017 01:36:21 PM UTC, 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>
Group Member
Fri 17 Feb 2017 09:07:14 AM UTC, 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 Files:
   
   
Comment:
   

Attached Files

 

Digest:
   bug dependencies.

Items that depend on this one: None found

 

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

    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 group members can vote.

     

    Follow 12 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-02-20 siko1056 StatusPatch Submitted Fixed
        Open/ClosedOpen Closed
    2017-02-20 rik5 Summarynumber literals 0b, 0x not mentioned in the docus number literals 0b, 0x not mentioned in the documentation
    2017-02-19 siko1056 Attached File- Added bugs50305_50334_review1.patch, #39788
    2017-02-19 siko1056 StatusConfirmed Patch Submitted
        Assigned toNone siko1056
    2017-02-18 ernstreissner Attached File- Added bugs50305_50334.patch, #39784
    2017-02-17 siko1056 Priority5 - Normal 3 - Low
        Item GroupNone Documentation
        StatusNone Confirmed
        Dependencies- Depends on bugs #50305
    2017-02-17 ernstreissner Carbon-Copy- Added -email is unavailable-

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code