<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">It seems to be the normal behavior, as
      int() and floor() behave the same for positive numbers (and 1.45
      cannot be stored exactly with IEEE 754)<br>
      <br>
      S.<br>
      <br>
      Le 18/04/2016 08:17, ol.bond a écrit :<br>
    </div>
    <blockquote
cite="mid:CAFO4QqBzqmzd_0cS73rVoMuBQY8JOfASAkxTQvXEoJ14SSYFdQ@mail.gmail.com"
      type="cite">
      <div dir="ltr">Thank you Samuel, I got it also....</div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">2016-04-18 15:13 GMT+09:00 Samuel
          GOUGEON [via Scilab / Xcos - Mailing Lists Archives] <span
            dir="ltr"><<a moz-do-not-send="true"
              href="/user/SendEmail.jtp?type=node&node=4033995&i=0"
              target="_top" rel="nofollow" link="external">[hidden
              email]</a>></span>:<br>
          <blockquote style="border-left:2px solid #CCCCCC;padding:0
            1em" class="gmail_quote">
            <div>Hello,<br>
              <br>
              Le 18/04/2016 08:03, ol.bond a écrit :<br>
            </div>
            <blockquote style="border-left:2px solid #CCCCCC;padding:0
              1em" type="cite">
              <div dir="ltr">.../...<span class=""><br>
                  <div><br>
                  </div>
                  <div><b>but:</b></div>
                  <div><br>
                  </div>
                  <div>
                    <div>int(1.45/0.025)</div>
                    <div> ans  =</div>
                    <div> </div>
                    <div>    57.</div>
                  </div>
                  <div><br>
                  </div>
                  <div>Can anyone explain what is going on?</div>
                </span></div>
            </blockquote>
            .<br>
            --> 1.45/0.025 - 58<br>
             ans  =<br>
            <br>
              -7.105D-15<br>
            <br>
            is the round-off error<br>
            SG<br>
            <br>
            <br>
            _______________________________________________
            <br>
            users mailing list
            <br>
            <a moz-do-not-send="true"
              href="http:///user/SendEmail.jtp?type=node&node=4033994&i=0"
              rel="nofollow" link="external" target="_blank">[hidden
              email]</a>
            <br>
            <a moz-do-not-send="true"
              href="http://lists.scilab.org/mailman/listinfo/users"
              rel="nofollow" link="external" target="_blank">http://lists.scilab.org/mailman/listinfo/users</a><br>
            <br>
            <br>
            <hr color="#cccccc" size="1" noshade="noshade">
            <div style="color:#444;font:12px
              tahoma,geneva,helvetica,arial,sans-serif">
              <div style="font-weight:bold">If you reply to this email,
                your message will be added to the discussion below:</div>
              <a moz-do-not-send="true"
href="http://mailinglists.scilab.org/Function-int-strange-behavior-tp4033993p4033994.html"
                target="_blank" rel="nofollow" link="external">http://mailinglists.scilab.org/Function-int-strange-behavior-tp4033993p4033994.html</a>
            </div>
            <div style="color:#666;font:11px
tahoma,geneva,helvetica,arial,sans-serif;margin-top:.4em;line-height:1.5em">
              To start a new topic under Scilab users - Mailing Lists
              Archives, email <a moz-do-not-send="true"
                href="/user/SendEmail.jtp?type=node&node=4033995&i=1"
                target="_top" rel="nofollow" link="external">[hidden
                email]</a> <br>
              To unsubscribe from Scilab users - Mailing Lists Archives,
              <a moz-do-not-send="true" href="" target="_blank"
                rel="nofollow" link="external">click here</a>.<br>
              <a moz-do-not-send="true"
href="http://mailinglists.scilab.org/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml"
                rel="nofollow" style="font:9px serif" target="_blank"
                link="external">NAML</a> </div>
          </blockquote>
        </div>
        <br>
      </div>
      <br>
      <hr width="300" align="left">
      View this message in context: <a moz-do-not-send="true"
href="http://mailinglists.scilab.org/Function-int-strange-behavior-tp4033993p4033995.html">Re:
        Function int() strange behavior</a><br>
      Sent from the <a moz-do-not-send="true"
href="http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html">Scilab
        users - Mailing Lists Archives mailing list archive</a> at
      Nabble.com.<br>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:users@lists.scilab.org">users@lists.scilab.org</a>
<a class="moz-txt-link-freetext" href="http://lists.scilab.org/mailman/listinfo/users">http://lists.scilab.org/mailman/listinfo/users</a>
</pre>
    </blockquote>
    <br>
    <br>
    <pre class="moz-signature" cols="72">-- 
Département de Génie Informatique
EA 4297 Transformations Intégrées de la Matière Renouvelable
Université de Technologie de Compiègne -  CS 60319
60203 Compiègne cedex</pre>
  </body>
</html>