I'll show the example using one's and two's complement. >>binary.ones_complement(1100111111) 0011000000 >>binary.twos_complement(1100111111) 0011000001 _______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/RJLGYE4N7NR6JYFSA64VES375U45PIKW/ Code of Conduct: http://python.org/psf/codeofconduct/
- [Python-ideas] Re: A... ananthakrishnan15 . 2001
- [Python-ideas] R... Mark Dickinson
- [Python-ideas] R... ananthakrishnan15 . 2001
- [Python-ideas] R... Mark Dickinson
- [Python-ideas] R... ananthakrishnan15 . 2001
- [Python-ideas] R... Chris Angelico
- [Python-ideas] R... ananthan ananthan
- [Python-ideas] R... ananthan ananthan
- [Python-ideas] R... Barry Scott
- [Python-ideas] Re: Add Binary... ananthakrishnan15 . 2001
- [Python-ideas] Re: Add Binary... ananthakrishnan15 . 2001
- [Python-ideas] Re: Add Bi... Paul Moore
- [Python-ideas] Re: A... ananthakrishnan15 . 2001
- [Python-ideas] R... Paul Moore
- [Python-ideas] R... ananthakrishnan15 . 2001
- [Python-ideas] Re: Add Bi... Antoine Rozo
- [Python-ideas] Re: Add Binary module. Barry Scott
- [Python-ideas] Re: Add Binary module. ananthakrishnan15 . 2001
- [Python-ideas] Re: Add Binary module. Andrew Barnert via Python-ideas
- [Python-ideas] Re: Add Binary module. ananthan ananthan
- [Python-ideas] Re: Add Binary mod... ananthan ananthan