<html>
<head>
<base href="http://bugzilla.scilab.org/" />
</head>
<body><span class="vcard"><a class="email" href="mailto:sgougeon@free.fr" title="Samuel GOUGEON <sgougeon@free.fr>"> <span class="fn">Samuel GOUGEON</span></a>
</span> changed
<a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - write_csv() fails to support writting complexes with %nan or %inf parts"
href="http://bugzilla.scilab.org/show_bug.cgi?id=8349">bug 8349</a>
<br><br>
---------- Bug Summary ----------- <br>write_csv() fails to support writting complexes with %nan or %inf parts <br><br>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">Keywords</td>
<td>Fix_me_for_Scilab_5.4
</td>
<td>have_nonregression_test
</td>
</tr>
<tr>
<td style="text-align:right;">URL</td>
<td>1) write_csv() supports complexes without any problem when there is no Nan nor Inf real or imaginary parts:-->m = grand(3,3,"uin",-9,9);-->write_csv(m*(1+%i),"test.txt")-->mgetl("test.txt") ans =! 7+%i*7 0 -5-%i*5 !! 9+%i*9 4+%i*4 -3-%i*3 !! 9+%i*9 9+%i*9 4+%i*4 !2) -->write_csv([ 1 %nan*(1+%i)],"test.txt")-->mgetl("test.txt") ans = 1 Na+%i*Nan // The first Nan is trimmed, BUT-->write_csv([ 1.1 %nan*(1+%i)],"test.txt")-->mgetl("test.txt") ans = 1,1 Nan+%i*Nan // Now, it is ok!3) Same thing with %inf:-->write_csv([ 1 %inf*(1+%i)],"test.txt")-->mgetl("test.txt") ans = 1 In+%i*Inf -->write_csv([ 1.1 %inf*(1+%i)],"test.txt")-->mgetl("test.txt") ans = 1,1 Inf+%i*Inf 4) Any imaginary part set to %nan or %inf overwrites the real part with %nan:-->write_csv([ 1.1 1+%i*%inf],"test.txt") -->mgetl("test.txt") ans = 1,1 Nan+%i*Inf
</td>
<td>
</td>
</tr>
<tr>
<td style="text-align:right;">Component</td>
<td>Input / output
</td>
<td>Data import/export
</td>
</tr></table>
<p>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are watching all bug changes.</li>
</ul>
</body>
</html>