I'm not sure about XOR, but you can do bitwise OR with one pipe '|', and AND with one ampersand '&'. Is that what you're asking? As for the conversions, check out the docs on pack and unpack.
-----Original Message----- From: Russ Foster [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 07, 2002 1:07 PM To: [EMAIL PROTECTED] Subject: Number Conversion - decimal to binary to hex, etc Questoin #1: Is there a function or module to convert numbers to/from decimal, binary, and hex? Question #2: Is there a function or module to perform binary calculations (AND, OR, XOR)? Russell J Foster e. [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -------------------------------------------------------------------------------- This email may contain confidential and privileged material for the sole use of the intended recipient. If you are not the intended recipient, please contact the sender and delete all copies. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]