<html>
<head>
<base href="http://bugzilla.scilab.org/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Reporter</th>
<td>sgougeon@free.fr</td>
</tr>
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - nearfloat(..,int32(1)) returns nothing and generates no error. Same issue with all types of encoded integers inputs."
href="http://bugzilla.scilab.org/show_bug.cgi?id=15504">15504</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>nearfloat(..,int32(1)) returns nothing and generates no error. Same issue with all types of encoded integers inputs.
</td>
</tr>
<tr>
<th>Product</th>
<td>Scilab software
</td>
</tr>
<tr>
<th>Version</th>
<td>6.0.1
</td>
</tr>
<tr>
<th>OS</th>
<td>All OS
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>Medium
</td>
</tr>
<tr>
<th>Component</th>
<td>Numerical Math
</td>
</tr>
<tr>
<th>Assignee</th>
<td>bugzilla.admin@scilab.org
</td>
</tr>
</table>
<p>
<div>
<pre>BUG DESCRIPTION:
----------------
In Scilab 5.5.2:
---------------
-->nearfloat("pred",int32(1))
!--error 201
nearfloat: Wrong type for argument #2: Real or Complex matrix expected.
-->nearfloat("succ",int32(1))
!--error 201
nearfloat: Wrong type for argument #2: Real or Complex matrix expected.
Same thing with int8, uint8, int16, uint16, uint32 inputs.
In Scilab 6.0:
-------------
--> nearfloat("pred", int32(1)) // nothing displayed
--> nearfloat("succ", int32(1)) // idem
--> type(nearfloat("pred", int32(1)))
--> type(nearfloat("pred", int32(1)))
type: Wrong number of input arguments: 1 expected.
This makes troubles when the result is tentatively assigned, like
"Unable to extract right part expression."
ERROR LOG:
----------
none. The bug is the miss of error message
HOW TO REPRODUCE THE BUG:
-------------------------
for i = [1 2 4 8 11 12 14 18]
nearfloat("pred", iconvert(1,i));
nearfloat("succ", iconvert(1,i));
end
// Should yield 16 error messages, while noting is displayed
OTHER INFORMATION:
------------------
Bug found when analyzing bugs of round() with int64 and uint64</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are watching all bug changes.</li>
</ul>
</body>
</html>