<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">With the current implementation, you
      will get the right result with the following:</div>
    <div class="moz-cite-prefix"><br>
    </div>
    <div class="moz-cite-prefix">bitget([b b], uint64(1:64))(1,:)</div>
    <div class="moz-cite-prefix">
      <ul>
        <li>use a non scalar x (pad it with anything if scalar)</li>
        <li>use a non scalar pos (idem)<br>
        </li>
        <li>use a pos with the same int64 or uint64 type than x<br>
        </li>
      </ul>
    </div>
    <div class="moz-cite-prefix">Samuel<br>
    </div>
    <div class="moz-cite-prefix"><br>
    </div>
    <div class="moz-cite-prefix">Le 27/02/2020 à 16:17, JLan a écrit :<br>
    </div>
    <blockquote type="cite"
      cite="mid:1582816645238-0.post@n3.nabble.com">
      <pre class="moz-quote-pre" wrap="">I wonder if i have misunderstood the documentation for bitget, or if this is
a bug? It seems to me that numbers > 2^53 are still not handled correctly.
--> a=uint64(2^61)
 a  =   2305843009213693952
--> b=uint64(2^61)+1
 b  =   2305843009213693953
--> bitget(a,1:64)
 ans  =
         column 1 to 32
  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0 
0  0  0  0  0  0  0
         column 33 to 64
  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0 
0  0  0  0  1  0  0

--> bitget(b,1:64)
 ans  =
         column 1 to 32
  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0 
0  0  0  0  0  0  0
         column 33 to 64
  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0 
0  0  0  0  1  0  0



--
Sent from: <a class="moz-txt-link-freetext" href="http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html">http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html</a>
_______________________________________________
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>
    <p><br>
    </p>
  </body>
</html>