| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
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.
Installing using Clib
$ clib install abranhe/binaryThe 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
| Carlos Abraham |
MIT License © Carlos Abraham
| Back | FazBrowse Home | New Git URL |