[Tutor] Number Conversion routines
ak@silmarill.org
ak@silmarill.org
Tue, 10 Jul 2001 01:42:08 -0400
On Tue, Jul 10, 2001 at 10:52:19AM +0530, Praveen Pathiyil wrote:
> Hi All,
>
> Is there any module or built-in routines which does conversion between different represenations of numbers ?
> I mean binary-to-hex, hex-to-binary, binary-to decimal etc.
>
> Thanks,
> Praveen.
There's built in hex() function that turns a decimal into hex. Also, I saw a function posted to comp.lang.python
that turns decimal into binary, search groups.google.com for it.
--
Cymbaline: intelligent learning mp3 player - python, linux, console.
get it at: http://silmarill.org/cymbaline