[Scilab-users] int(x) bug for x>2^62

philippe rouxph.22 at gmail.com
Wed Aug 22 10:26:07 CEST 2018


Hi,

I find a strange behavior in "int" with scilab-6.0.1 today :

--> 2^63
 ans  =

   9.2233720368548D+18

--> int(2^63) //  negative result !!!
 ans  =

  -9.2233720368548D+18


--> int(2^62)
 ans  =

   4.6116860184274D+18

--> 2^62
 ans  =

   4.6116860184274D+18



the problem doesn't appear with floor/ceil/round. I search on bugzilla
but found nothing related to int.

Best regards,

Philippe




More information about the users mailing list