[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #36133] num2str fails to switch from integer o
From: |
Dan Sebald |
Subject: |
[Octave-bug-tracker] [bug #36133] num2str fails to switch from integer output to exponential notation for large values |
Date: |
Fri, 13 Jul 2018 14:08:17 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.0 |
Follow-up Comment #18, bug #36133 (project octave):
OK. I noticed there is a PRECISION input variable. Some of the same issues
might apply there:
>> astr = num2str(a,16)
astr = 1.234567890123457e+19
>> astr = num2str(a,17)
astr = 1.2345678901234567e+19
>> astr = num2str(a,18)
astr = 1.23456789012345672e+19
>> astr = num2str(a,19)
astr = 1.234567890123456717e+19
>> astr = num2str(a,20)
astr = 12345678901234567168
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?36133>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/