Metadata-Version: 2.1
Name: bin2
Version: 0.0.0
Summary: Get 2' complemnt form of a integer
Home-page: https://github.com/codemee/bin2.git
Author: meebox
Author-email: meebox@gmail.com
License: UNKNOWN
Project-URL: Blog, https://dev.to/codemee/python-de-wei-yuan-yun-suan-5bgb
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE

# bin2(): get 2's complement form of an integer

The Python builtin function bin() gives the binary literal form of an integer. But Python uses 2's complement inside for integers. This module provide bin2() to produce 2's complement form of an integer.

```python
>>> from bin2 import bin2
>>> bin2(-5)
0b1011
```



