On 29 October 2010 00:13, Dave Angel <span dir="ltr"><<a href="mailto:davea@ieee.org">davea@ieee.org</a>></span> wrote:<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">


>From the help:<br>
<br>
"The unary ~ (invert) operator yields the bitwise inversion of its plain or long integer argument. The bitwise inversion of x is defined as -(x+1). It only applies to integral numbers"<br>
<br>
Inverting the bits of a floating point number wouldn't make much sense, so fortunately it gives an error.<br>
<br>
DaveA<br></blockquote><div><br></div><div>Very cool, Dave. Thanks for looking that up. =]</div><div><br></div><div>Cheers,</div><div>Xav </div></div>