Skip to content

I made a poor decision automating something I could have done with cardboard in 10 minutes...

Notifications You must be signed in to change notification settings

LumaControl/bean-machine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 

Repository files navigation

Bean machine: Binary converter

This "binary machine" turns decimal numbers into binary numbers and vice versa.

The decimal to binary function uses division by 2 with remainders to define the length and value of the binary output. it puts this into an array.

Binary to decimal converter checks if the input consists of {1,0} and nothing else. Program will return to main function if this is not the case. If it is, the input will become an array which will be checked in length, to multiply each bit by the correct power and add them together.

About

I made a poor decision automating something I could have done with cardboard in 10 minutes...

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages