Brian Goetz wrote: > The only part I'm not sure about here is what to do with negative > numbers. I'm sure there's some representation which gives the desired > result when sorted lexicographically; Doug?
Two's complement comes to mind. Convert to two's complement and print as hex, padded to 32 bits, or 64 if you want to be able to intermix ints and longs. Floats work too: convert the pre-decimal part to two's complement and pad. Doug -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>