[Bugzilla] [Bug 15506] Stéphane MOTTELET has commented the bug

bugzilla.admin at scilab.org bugzilla.admin at scilab.org
Tue Mar 27 13:21:45 CEST 2018


http://bugzilla.scilab.org/show_bug.cgi?id=15506
--------- Bug Summary -----------
uint64() is puzzled  over [uint64(%inf)/2 uint64(%inf)]

---------- Changed by ------------
stephane.mottelet at utc.fr

---------- What changed ----------

--- Comment #2 from Stéphane MOTTELET <stephane.mottelet at utc.fr> ---
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.

-- 
You are receiving this mail because:
You are watching all bug changes.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/bugzilla/attachments/20180327/c17dd4f9/attachment.htm>


More information about the Bugzilla mailing list