This module should contain operations that can be performed on binary numbers.
In the below examples a and b are binary numbers.

binary.add(a,b)
binary.sub(a,b)
binary.mul(a,b)
binary.div(a,b)
binary.ones_complement(a)    //returns 1's complement of a.
binary.twos_complement(a)    //returns 2's complement of a.
binary.dectobi(a)            //converts decimal "a" to binary of "a".
binary.bcd(a)                //returns bcd of a.
binary.gray(a)               //returns grey code of a.
binary.min()                 //minimizes.
binarybitodec                //converts binar "a" to decimal of "a".
_______________________________________________
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/YIAFNIOKFEBVVOSNQ75W4B5MAHRMTB6I/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to