Re: Number Conversion - decimal to binary to hex, etc

2002-03-07 Thread Michael Fowler
On Thu, Mar 07, 2002 at 03:07:29PM -0600, Russ Foster wrote: > Questoin #1: Is there a function or module to convert numbers to/from > decimal, binary, and hex? Your question is a little vague. Do you have a number, and want to represent it in a certain base? Or do you have a string that should

Re: Number Conversion - decimal to binary to hex, etc

2002-03-07 Thread Jeff 'japhy' Pinyan
On Mar 7, Russ Foster said: >Questoin #1: Is there a function or module to convert numbers to/from >decimal, binary, and hex? See the documentation for pack(), unpack(), sprintf(), and hex(). That'll cover pretty much every base (no pun intended). >Question #2: Is there a function or module to

RE: Number Conversion - decimal to binary to hex, etc

2002-03-07 Thread Timothy Johnson
OTECTED]] 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 (

Re: Number Conversion - decimal to binary to hex, etc

2002-03-07 Thread Jonathan E. Paton
--- 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 th

Re: Number Conversion - decimal to binary to hex, etc

2002-03-07 Thread John W. Krahn
Russ Foster wrote: > > Questoin #1: Is there a function or module to convert numbers to/from > decimal, binary, and hex? perldoc -f hex perldoc -f oct perldoc -f sprintf perldoc -f vec perldoc POSIX # Look for strtol() and strtoul() > Question #2: Is there a function or module to perform

Number Conversion - decimal to binary to hex, etc

2002-03-07 Thread Russ Foster
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