Skip to content

il4mb/Open-Binary

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Open Binary

Issues Build Status Code Size Licensi Languages

what is Open Binary ?
Open Binary has a simple code to add and subtract binary numbers

Features

✔️ Adding a binary number to another binary number
✔️ Subtracting binary numbers from other numbers


HOW TO USE

just download this code and place it in workspace

Simple Use

import OpenBinary

# -*- coding: utf-8 -*-
import  OpenBinary

Create New Binary

binary = OpenBinary.Biner('1010')
print(binary, chr(binary))

The result should be

1010	c

1. Sum

binary = binary.sumWith("1001")
print(binary, chr(binary))

The result should be

10011	✛

2. Subtract

binary = binary.subWith("1001")
print(binary, chr(binary))

The result should be

1010	c