[Scilab-users] Function int() strange behavior

Samuel Gougeon sgougeon at free.fr
Mon Apr 18 08:12:31 CEST 2016


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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20160418/53650b83/attachment.htm>


More information about the users mailing list