[Tutor] Is there an easy way to conduct binary numbers?

2004-12-23 Thread Juan Shen
I have found there are easy functions and options to do basic octal and hexadecimal number operation. oct(...) oct(number) - string Return the octal representation of an integer or long integer. hex(...) hex(number) - string Return the hexadecimal representation of an integer or long integer.

Re: [Tutor] Is there an easy way to conduct binary numbers?

2004-12-23 Thread Blake Winton
Juan Shen wrote: Binary integer is extremely useful in my electronic-related job. So...I need help. Is there any function to transform between binary and decimal integers in python's library? If not, what's the solution to binary? I can't speak for everyone, but most of the people I've met

Re: [Tutor] Is there an easy way to conduct binary numbers?

2004-12-23 Thread Kent Johnson
Googling in comp.lang.python for convert binary gives several solutions including the ones in this thread: http://tinyurl.com/6dwom Juan Shen wrote: I have found there are easy functions and options to do basic octal and hexadecimal number operation. oct(...) oct(number) - string

Re: [Tutor] Is there an easy way to conduct binary numbers?

2004-12-23 Thread Orri Ganel
On Thu, 23 Dec 2004 20:42:50 +0800, Juan Shen [EMAIL PROTECTED] wrote: I have found there are easy functions and options to do basic octal and hexadecimal number operation. oct(...) oct(number) - string Return the octal representation of an integer or long integer. hex(...)