[Tutor] Binary math?

Bill Mill bill.mill at gmail.com
Mon Oct 25 18:23:57 CEST 2004


Jeff,

There isn't a built-in type, but it's fairly easy to do. Have a look
at http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/219300 for
some ideas on how to do it. If you don't understand those, ask and
I'll try to clarify them for you.

Peace
Bill Mill
bill.mill at gmail.com


On Mon, 25 Oct 2004 09:09:27 -0700 (PDT), Jeff Peery
<jeffpeery at yahoo.com> wrote:
> 
>  
>  
> 
> Hello, 
> 
> will python work with binary math? i.e., add subtract binary numbers? is
> there a specific type that I have to use to define a binary number? thanks. 
> 
>   
> 
> Jeff 
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> http://mail.python.org/mailman/listinfo/tutor
> 
> 
>


More information about the Tutor mailing list