The documentation for "bitNot" states:
"bitNot 1 -- evaluates to 0
bitNot 14 -- in binary: bitNot 1110; evaluates to 0001; converted to 1"
Both of those results are incorrect (well in theory they are correct, but
not for 32-bit integers)..
bitNot 1 -- returns 4294967294 (which is -2)
bitNot 14 -- returns 4294967280 (which is -15)
The correct answers are returned using the bitwise operators posted last
night. You can verify all your answers using your web browser and the
following javascript
<script type="text/javascript">
document.write(~14); // ~ bitNot
</script>
_________________________________________________________________
Dont just search. Find. Check out the new MSN Search!
http://search.msn.click-url.com/go/onm00200636ave/direct/01/
_______________________________________________
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution