|
From: | Rik |
Subject: | [Octave-bug-tracker] [bug #36133] num2str displays more than 16 significant digits for large integer inputs |
Date: | Wed, 25 Apr 2018 12:33:50 -0400 (EDT) |
User-agent: | Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.0 |
Follow-up Comment #7, bug #36133 (project octave): @Joe: Are you proposing that the two assert statements be added as BIST tests to num2str.m? Also, can you determine when Matlab switches from decimal to exponential notation? Try running this code: for i = 1:25 x = 10^i; str = num2str (x); disp (str); end Octave never switches over to exponential notation 10 100 1000 10000 100000 1000000 10000000 100000000 1000000000 10000000000 100000000000 1000000000000 10000000000000 100000000000000 1000000000000000 10000000000000000 100000000000000000 1000000000000000000 10000000000000000000 100000000000000000000 1000000000000000000000 10000000000000000000000 99999999999999991611392 999999999999999983222784 10000000000000000905969664 _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?36133> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |