[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Bitwise XOR in Lua?
- From: Reuben Thomas <rrt@...>
- Date: Tue, 10 Sep 2002 15:51:39 +0100 (BST)
> One problem though: -A := not(A)+1 is for 2-complement.
> Floating point numbers (normally) do not use 2-complement
? It works for integers, and normally you just want to use the mantissa to
store the bit-string, i.e. you're treating floats as ints.
http://www.mupsych.org/~rrt/ | Floc: an egregiously good aperitif