--- Russ Foster <[EMAIL PROTECTED]> wrote:
> Questoin #1: Is there a function or module to
> convert numbers to/from decimal, binary, and hex?

sprintf format strings can do some of the magic.  There
is a hex and oct functions.  binary can be done via
pack(), if you've got the cookbook this is the subject
of a recipe.

> Question #2: Is there a function or module to perform
> binary calculations
> (AND, OR, XOR)?

& = logical and
^ = logical or (if I remember right)
~ = logical not

Jonathan Paton

__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to