Re: [Scilab-users] Function int() strange behavior

2016-04-18 Thread ol.bond
Thank you Samuel, I got it also

2016-04-18 15:13 GMT+09:00 Samuel GOUGEON [via Scilab / Xcos - Mailing
Lists Archives] :

> Hello,
>
> Le 18/04/2016 08:03, ol.bond a écrit :
>
> .../...
>
> *but:*
>
> int(1.45/0.025)
>  ans  =
>
> 57.
>
> Can anyone explain what is going on?
>
> .
> --> 1.45/0.025 - 58
>  ans  =
>
>   -7.105D-15
>
> is the round-off error
> SG
>
>
> ___
> users mailing list
> [hidden email] 
> http://lists.scilab.org/mailman/listinfo/users
>
>
> --
> If you reply to this email, your message will be added to the discussion
> below:
>
> http://mailinglists.scilab.org/Function-int-strange-behavior-tp4033993p4033994.html
> To start a new topic under Scilab users - Mailing Lists Archives, email
> ml-node+s994242n2602246...@n3.nabble.com
> To unsubscribe from Scilab users - Mailing Lists Archives, click here
> 
> .
> NAML
> 
>




--
View this message in context: 
http://mailinglists.scilab.org/Function-int-strange-behavior-tp4033993p4033995.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at 
Nabble.com.___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


[Scilab-users] Function int() strange behavior

2016-04-18 Thread ol.bond
Hello,

I have found some weird behavior of int() function in SciLab 5.5.2:

-->1.45/0.025
 ans  =

58.

-->round(1.45/0.025)
 ans  =

58.

*but:*

int(1.45/0.025)
 ans  =

57.

Can anyone explain what is going on?




--
View this message in context: 
http://mailinglists.scilab.org/Function-int-strange-behavior-tp4033993.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at 
Nabble.com.___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users