>>> ord('\x0D')
13 

Johan

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Rikard Bosnjakovic
Sent: 16 March 2007 01:12 PM
To: [email protected]
Subject: Re: [Tutor] convert hex number to decimal

On 3/16/07, ammar azif <[EMAIL PROTECTED]> wrote:

> Is there any built-in function to convert a hex number to a decimal
number?

>>> int("ff", 16)
255



--
- Rikard.
_______________________________________________
Tutor maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/tutor

--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.446 / Virus Database: 268.18.10/720 - Release Date: 2007/03/12
07:19 PM
 

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.446 / Virus Database: 268.18.10/720 - Release Date: 2007/03/12
07:19 PM
 

_______________________________________________
Tutor maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/tutor

Reply via email to