<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">What do you get when you evaluate #b11111111111111111111111111100010 ?<div><br></div><div>rac</div><div><br><div><div>On Jun 16, 2014, at 9:32 PM, Roman Klochkov wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">
<div><p>;; from Racket reference 4.2.2.6<br>(define (bitwise-bit-field* n start end)<br> (bitwise-and (sub1 (arithmetic-shift 1 (- end start)))<br> (arithmetic-shift n (- start))))<br><br>> (bitwise-bit-field #b11111111111111111111111111100010 0 31)<br>-30<br>> (bitwise-bit-field* #b11111111111111111111111111100010 0 31)<br>2147483618</p>Racket 6.0.1, Windows XP x86<br><br>-- <br>Roman Klochkov</div>
____________________<br> Racket Users list:<br> <a href="http://lists.racket-lang.org/users">http://lists.racket-lang.org/users</a><br></blockquote></div><br></div></body></html>