[Tutor] convert hex number to decimal
Johan Geldenhuys
johan at accesstel.co.za
Sat Mar 17 08:24:42 CET 2007
>>> ord('\x0D')
13
Johan
-----Original Message-----
From: tutor-bounces at python.org [mailto:tutor-bounces at python.org] On Behalf
Of Rikard Bosnjakovic
Sent: 16 March 2007 01:12 PM
To: Tutor at python.org
Subject: Re: [Tutor] convert hex number to decimal
On 3/16/07, ammar azif <ceasar102 at yahoo.com> wrote:
> Is there any built-in function to convert a hex number to a decimal
number?
>>> int("ff", 16)
255
--
- Rikard.
_______________________________________________
Tutor maillist - Tutor at python.org
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
More information about the Tutor
mailing list