<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 - uint64() is puzzled over [uint64(%inf)/2 uint64(%inf)]"
href="http://bugzilla.scilab.org/show_bug.cgi?id=15506">15506</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>uint64() is puzzled over [uint64(%inf)/2 uint64(%inf)]
</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:
----------------
--> imax = uint64(%inf)
imax =
18446744073709551615 // OK
--> x=2^64-1
x =
1.845D+19 // OK
--> x<=imax
ans =
T /// OK
--> uint64(x)
ans =
9223372036854775808 // BUG
--> uint64(x)==imax/2
ans =
T // !
ERROR LOG:
----------
none. Wrong behavior
HOW TO REPRODUCE THE BUG:
-------------------------
imax = uint64(%inf)
x = 2^64-1
x <= imax
uint64(x)
uint64(x)==imax/2
OTHER INFORMATION:
------------------
This bug has complicated a lot the design of the unit tests
test_run compatibility_functions mtlb_int_uint</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are watching all bug changes.</li>
</ul>
</body>
</html>