lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

> One problem though:  -A := not(A)+1  is for 2-complement.
> Floating point numbers (normally) do not use 2-complement
> arithmetic.

? 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.

-- | Floc: an egregiously good aperitif