When I run this program using your code on Ubuntu Linux, I get: ~$ ./c2f.py 44 44\uffffF = 7\uffffC Please notice that the code you have posted has indentation block errors. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com