>From Programming Perl..
hex EXPR
This function interprets EXPR as a hexadecimal string and returns the
equivalent decimal value. (To interpret strings that might start with 0 or
0x see oct.) If EXPR is omitted, it interprets $_. The following code sets
$number to 4,294,906,560:
$number = hex("ffff12c0");
To do the inverse function, use:
sprintf "%lx", $number; # (That's an ell, not a one.)
-----Original Message-----
From: Jean-Paul Miéville [mailto:[EMAIL PROTECTED]]
Sent: 04 July 2001 09:26
To: [EMAIL PROTECTED]
Subject: How to convert hexadecimal number in decimal ?
Hi,
Can you explain me how can I convert an hexadecimal number in decimal ?
For converting decimal in hexadecimal, I can use the function hex, but I
didn't find a function for converting hex in dec.
Thanks in advance,
Jean-Paul
_______________________________________________________
Send a cool gift with your E-Card
http://www.bluemountain.com/giftcenter/
--------------------------Confidentiality--------------------------.
This E-mail is confidential. It should not be read, copied, disclosed or
used by any person other than the intended recipient. Unauthorised use,
disclosure or copying by whatever medium is strictly prohibited and may be
unlawful. If you have received this E-mail in error please contact the
sender immediately and delete the E-mail from your system.