[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #38463] num2str output inconsistent with sprin
From: |
Philip Nienhuis |
Subject: |
[Octave-bug-tracker] [bug #38463] num2str output inconsistent with sprintf |
Date: |
Tue, 05 Mar 2013 18:45:08 +0000 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.11) Gecko/20100701 SeaMonkey/2.0.6 |
Follow-up Comment #4, bug #38463 (project octave):
2013a:
>> x = num2str ([1, 1.34; 3, 3.56], '%5.1f')
x =
1.0 1.3
3.0 3.6
>> double (x)
ans =
49 46 48 32 32 49 46 51
51 46 48 32 32 51 46 54
>> x = num2str ([i, 1.34; 3, 3.56], '%5.1f')
x =
0.0+1.0i 1.3+0.0i
3.0+0.0i 3.6+0.0i
>> double (x)
ans =
Columns 1 through 13
48 46 48 43 49 46 48 105 32 32 49 46
51
51 46 48 43 48 46 48 105 32 32 51 46
54
Columns 14 through 18
43 48 46 48 105
43 48 46 48 105
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?38463>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/