<html>
    <head>
      <base href="http://bugzilla.scilab.org/" />
    </head>
    <body><br>
    ---------- Bug Summary ----------- <br>Trouble with int64() around int64(%inf)- <br><br>
    <br>
      <p>
        <div>

            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Trouble with int64() around int64(%inf)-"
   href="http://bugzilla.scilab.org/show_bug.cgi?id=15505#c3">Comment # 3</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Trouble with int64() around int64(%inf)-"
   href="http://bugzilla.scilab.org/show_bug.cgi?id=15505">bug 15505</a>
              from <span class="vcard"><a class="email" href="mailto:sgougeon@free.fr" title="Samuel GOUGEON <sgougeon@free.fr>"> <span class="fn">Samuel GOUGEON</span></a>
</span></b>
        <pre>(In reply to Stéphane MOTTELET from <a href="show_bug.cgi?id=15505#c2">comment #2</a>)
<span class="quote">> The help page of "double" 

> <a href="https://help.scilab.org/docs/6.0.1/en_US/double.html">https://help.scilab.org/docs/6.0.1/en_US/double.html</a>

> is very informative about this.</span >

Thanks (i am the author <a href="https://codereview.scilab.org/#/c/17908/5..14/scilab/modules/elementary_functions/help/en_US/floating_point/double.xml">https://codereview.scilab.org/#/c/17908/5..14/scilab/modules/elementary_functions/help/en_US/floating_point/double.xml</a> :).


(In reply to Stéphane MOTTELET from <a href="show_bug.cgi?id=15505#c1">comment #1</a>)
<span class="quote">> int64(2^63-1) cannot be equal to int64(%inf), because 2^63-1 is evaluated as a double, with a mantissa which has too many digits. </span >

yes, sure

<span class="quote">>Here 

> --> 2^63-1
>  ans  =

>    9.223372036854776480D+18

> is stored as  9223372036854776480 hence greater than 9223372036854775807 !</span >

Not on Windows:
-- format(25)
--> 2^63-1
 ans  =
   9223372036854775800.

When seeing all these traps, it looked to me that some inequality operators like %s_1_i() might be improved wrt int64/uint64 specific features.
They presently convert the integer into double, while, for instance, the double could be converted into int64|uint64.
To be analyzed.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are watching all bug changes.</li>
      </ul>
    </body>
</html>