<html>
<head>
<base href="http://bugzilla.scilab.org/" />
</head>
<body><br>
---------- Bug Summary ----------- <br>uint64() is puzzled over [uint64(%inf)/2 uint64(%inf)] <br><br>
<br>
<p>
<div>
<b><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#c2">Comment # 2</a>
on <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">bug 15506</a>
from <span class="vcard"><a class="email" href="mailto:stephane.mottelet@utc.fr" title="Stéphane MOTTELET <stephane.mottelet@utc.fr>"> <span class="fn">Stéphane MOTTELET</span></a>
</span></b>
<pre>Under Linux, OSX, Window, we have, under scilab 6.0.1 :
--> [f,e]=frexp(2^64-1)
e =
65.
f =
0.5
which is explicit about the fact that 2^64-1 when stores as a double is stored as 0.5*2^65=2^64, so the answer of uint64(2^64-1) should be always 0.
However, under window, we have (after format(25))
--> disp(2^64-1)
18446744073709552000.
whereas under OSX and Linux
--> disp(2^64-1)
18446744073709551616.
To me, it looks like a display bug (since the stored value is ok), specific to Windows.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are watching all bug changes.</li>
</ul>
</body>
</html>