<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 29.08.2016 02:09, Tim Wescott wrote:<br>
</div>
<blockquote cite="mid:1472429361.3023.62.camel@Servo" type="cite">
<pre wrap="">A kludge would be to make it into two integers.
</pre>
</blockquote>
<br>
Each case may not be so complex to work around, but in total it
seems like Scilab 6 is not yet well prepared for int64 and uint64.<br>
<br>
For instance %x and %o need to be handled too, functions like
dec2bin() and dec2hex() should work - etc.<br>
<br>
Generally a lot of caution is needed when using these 64 bit
integers. Example:<br>
<pre class="bz_comment_text" id="comment_text_5" style="font-size: small; font-family: monospace; white-space: pre-wrap; width: 1003px; color: rgb(0, 0, 0); font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);">--> int64(2^62+256+1) //loss of prescision
ans =
4611686018427387904
--> int64(2^62)+256+1 //correct
ans =
4611686018427388161
--> int64(2)^62+256+1 // correct
ans =
4611686018427388161</pre>
<br>
Jan Å<br>
<br>
<br>
<br>
</body>
</html>