Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
/ binary Public

CLI tool to work with binary numbers written in C

License

Notifications You must be signed in to change notification settings

abranhe/binary

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

17 Commits

Repository files navigation




binary cli: The command line interface to work with binary numbers



In mathematics and digital electronics, a binary number is a number expressed in the base-2 numeral system or binary numeral system, which uses only two symbols: typically 0 and 1.

Installation

Installing using Clib

$ clib install abranhe/binary

CLI

The options of binary

An small library to work with binary numbers
 Usage:
 $ binary <option> <input>
 Options:
 -is, --is-binary check if a number is binary
 --to-decimal convert a binary number to decimal
 --to-binary convert a decimal number to binary
 -v, --version output version number
 -h, --help output usage information
 Example:
 $ binary --is-binary 10101000
 true
 $ binary --to-decimal 1011
 7

Related

  • binary.c: API for this module written in C.

Team

Carlos Abraham Logo
Carlos Abraham

License

MIT License © Carlos Abraham

AltStyle によって変換されたページ (->オリジナル) /