bugGNU Octave - Bugs: bug #50305, new feature not documented: 10_000

 
 

bug #50305: new feature not documented: 10_000

Submitter:  Ernst Reissner <ernstreissner>
Submitted:  Tue 14 Feb 2017 03:12:11 PM UTC
   
 
Category:  Documentation Severity:  2 - Minor
Priority:  3 - Low Item Group:  Documentation
Status:  Duplicate 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
   

Sun 19 Feb 2017 01:02:08 AM UTC, comment #4: 

Closed. Moved discussion to bug #50334.

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

I submitted a patch for this bug together with 50334.
See there.

Ernst Reissner <ernstreissner>
Tue 14 Feb 2017 07:07:12 PM UTC, comment #2: 

It is dcumented in the NEWS which is a list of important, visible changes to Octave made in the current release.  You can see the NEWS by typing 'news' at the prompt.  The feature you mention is the first listed change.


Summary of important user-visible changes for version 4.2:
---------------------------------------------------------

 ** The parser has been extended to accept, but ignore, underscore
    characters in numbers.  This facilitates writing more legible code
    by using '_' as a thousands separator or to group nibbles into bytes
    in hex constants.

    Examples: 1_000_000 == 1e6  or  0xDE_AD_BE_EF


It should also be documented somewhere in the manual.

Suggested language and a location in the manual would be welcome.

Rik <rik5>
Group administrator
Tue 14 Feb 2017 06:43:24 PM UTC, comment #1: 

You're right, this is documented in the NEWS file for the 4.2 release

https://www.gnu.org/software/octave/NEWS-4.2.html

but is not documented in the user manual yet.

Mike Miller <mtmiller>
Group Member
Tue 14 Feb 2017 03:12:11 PM UTC, original submission:  

It seems as if new octave 4.2.0 supports number literals of kind 10_000, nowhere documented.

A little strange how freely this is implemented:
even 10__0 and 10._0 work.

Hm...
I did not find anywhere an according feature in matlab.
Thus I think it should be remarked, that this is special to octave.

Ernst Reissner <ernstreissner>

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Digest:
   bug dependencies.

 

Carbon-Copy List
  • -email is unavailable- added by siko1056 (Updated the item)
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by mtmiller (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 15 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-02-19 siko1056 StatusConfirmed Duplicate
        Assigned toNone siko1056
        Open/ClosedOpen Closed
    2017-02-17 siko1056 Dependencies- bugs #50334 is dependent
    2017-02-14 siko1056 StatusNone Confirmed
    2017-02-14 mtmiller Severity3 - Normal 2 - Minor
        Priority5 - Normal 3 - Low
        Item GroupNone Documentation
    2017-02-14 rik5 Severity2 - Minor 3 - Normal
        Priority3 - Low 5 - Normal
        Item GroupDocumentation None
    2017-02-14 mtmiller Severity3 - Normal 2 - Minor
        Priority5 - Normal 3 - Low
        Item GroupNone Documentation
    2017-02-14 ernstreissner Carbon-Copy- Added -email is unavailable-

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code