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

Stéphane Mottelet stephane.mottelet at utc.fr
Wed Aug 22 11:14:13 CEST 2018


Hello

This bug has been recently fixed, see http://bugzilla.scilab.org/show_bug.cgi?id=15629

S.

> Le 22 août 2018 à 10:26, philippe <rouxph.22 at gmail.com> a écrit :
> 
> 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
> 
> _______________________________________________
> users mailing list
> users at lists.scilab.org
> https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20180822/74e003b0/attachment.htm>


More information about the users mailing list