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

bugzilla.admin at scilab.org bugzilla.admin at scilab.org
Tue Mar 27 13:39:29 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 #3 from Stéphane MOTTELET <stephane.mottelet at utc.fr> ---
Sorry, it is worse than that: under Windows there is a bug of exponentiation and multiplication for uint64 (addition seems ok):

Windows :
--> x = [ uint64(2)^63+uint64(2)^63, 2*uint64(2)^63, uint64(2)^64 ]
 x  = 

  0  9223372036854775808  9223372036854775808


--> x==0
 ans  =

  T F F

OSX, Linux:
-->  x = [ uint64(2)^63+uint64(2)^63, 2*uint64(2)^63, uint64(2)^64 ]
 x  = 

  0  0  0


--> x==0
 ans  =

T T T

-- 
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/06761f31/attachment.htm>


More information about the Bugzilla mailing list