<html>
    <head>
      <base href="http://bugzilla.scilab.org/" />
    </head>
    <body><span class="vcard"><a class="email" href="mailto:stephane.mottelet@utc.fr" title="Stéphane MOTTELET <stephane.mottelet@utc.fr>"> <span class="fn">Stéphane MOTTELET</span></a>
</span> changed
              <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - uint64() is puzzled over [uint64(%inf)/2 uint64(%inf)]"
   href="http://bugzilla.scilab.org/show_bug.cgi?id=15506">bug 15506</a>
                <br><br>
                ---------- Bug Summary ----------- <br>uint64() is puzzled  over [uint64(%inf)/2 uint64(%inf)] <br><br>

          <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">CC</td>
           <td>
                
           </td>
           <td>stephane.mottelet@utc.fr
           </td>
         </tr></table>
      <p>
        <div>

            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - uint64() is puzzled over [uint64(%inf)/2 uint64(%inf)]"
   href="http://bugzilla.scilab.org/show_bug.cgi?id=15506#c1">Comment # 1</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - uint64() is puzzled over [uint64(%inf)/2 uint64(%inf)]"
   href="http://bugzilla.scilab.org/show_bug.cgi?id=15506">bug 15506</a>
              from <span class="vcard"><a class="email" href="mailto:stephane.mottelet@utc.fr" title="Stéphane MOTTELET <stephane.mottelet@utc.fr>"> <span class="fn">Stéphane MOTTELET</span></a>
</span></b>
        <pre>For me, under OSX and Linux, everything is coherent, with an evident loss of precision in the computation of 2^64-1 as a double

--> x=uint64(%inf)
 x  = 

  18446744073709551615


--> y=2^64-1
 y  = 

   1.845D+19


--> format(25)

--> y
 y  = 

   18446744073709551616.


--> uint64(y)
 ans  =

  0</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are watching all bug changes.</li>
      </ul>
    </body>
</html>