<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">About that:<br>
      Le 05/08/2014 08:35, A Khorshidi a écrit :<br>
    </div>
    <blockquote cite="mid:DUB109-W49A135947BE9B2BE982F5CA3E30@phx.gbl"
      type="cite">
      <div dir="ltr">
        <style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style>
        <div dir="ltr">.../...<br>
          And another case, <br>
          For values larger than the maximum value of a given integer
          data type (e.g. 127 for int8) Scilab and Matlab return
          different values. <br>
          For example, Scilab's result for int8(200) is -56 but Matlab's
          result will be 127 (the largest value which can be stored in
          this data type). <br>
        </div>
      </div>
    </blockquote>
    <br>
    Scilab wraps integer overflows (200 - 2^8 = -56), whereas Octave
    saturates. When overflowing an integer, "R" delivers a "NA" value
    (Not Available).<br>
    I have no opinion about the best way to deal with integer overflow
    when designing the language.<br>
    This kind of topic has been discussed when designing the bitshift()
    function for Scilab:<br>
    <a class="moz-txt-link-freetext" href="http://bugzilla.scilab.org/show_bug.cgi?id=9006#c8">http://bugzilla.scilab.org/show_bug.cgi?id=9006#c8</a><br>
    <br>
    Regards<br>
    Samuel<br>
    <br>
  </body>
</html>