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

Samuel Gougeon sgougeon at free.fr
Wed Aug 22 11:21:37 CEST 2018


Hello Philippe,
This bug is fixed in Scilab 6.0.2-: 
https://build.scilab.org/view/Scilab%206.0/
Regards
Samuel

Le 22/08/2018 à 10:26, philippe 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
> http://lists.scilab.org/mailman/listinfo/users
>




More information about the users mailing list