bugGNU Octave - Bugs: bug #36133, num2str displays more than 16...


bug #36133: num2str displays more than 16 significant digits for large integer inputs

Submitted by:  Rik <rik5>
Submitted on:  Mon 09 Apr 2012 03:08:33 AM UTC  
Category: Octave FunctionSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Inaccurate Result
Status: ConfirmedAssigned to: None
Originator Name: Open/Closed: Open
Release: devOperating System: Any

Add a New Comment(Rich Markup)

You are not logged in

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


Mon 21 Nov 2016 01:05:33 PM UTC, comment #3:

Matlab R2014b:

(The second 1 in the first result is real.)

Hartmut <hardy>
Sun 20 Nov 2016 03:17:53 PM UTC, comment #2:

For comparison, could someone try the following in Matlab?

Rik <rik5>
Project Administrator
Sat 19 Nov 2016 09:24:37 PM UTC, comment #1:

This is still present in Octave 4.2.0.

Hartmut <hardy>
Mon 09 Apr 2012 03:08:33 AM UTC, original submission:

Example code:

This should be '1' with 25 zeros after it.

Matlab correctly masks large integer inputs to just 16 significant digits.

For something really wacky try

Rik <rik5>
Project Administrator


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

Attach File(s):

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


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

    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 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 19 Jan 2014 10:32:42 PM UTCmtmillerCategoryNone=>Octave Function
      Operating SystemGNU/Linux=>Any

    Back to the top

    Powered by Savane 3.1-cleanup1