GithubHelp home page GithubHelp logo

dj-ryan / numvert Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 3.64 MB

A cli program to convert numbers between bases

License: MIT License

C++ 98.54% Makefile 0.01% Perl 0.01% C 1.44%
number-base-converter number-converter base-conversion binary hexadecimal decimal

numvert's Introduction

Imgur

Description

A cli program to convert numbers between bases

Installation

  • Clone and go to the root directory
  • Build using the make file or compile using:
    • g++ src/numvert.cpp -o numvert -Wall -std=c++11 -Iinclude
  • Install
    • Windows
      • Copy binary to system folder such as 'Program Files'
      • Add path to PATH variable
    • Linux
      • Copy binary into bin folder

Usage

  numvert {OPTIONS}

    Numvert

  OPTIONS:

      Input types:
        -h[Hexadecimal...],
        --hex=[Hexadecimal...]            Hexadecimal input (do not apply 0x
                                          prefix)
        -d[Decimal...], -i[Decimal...],
        --dec=[Decimal...],
        --int=[Decimal...]                Decimal input
        -b[Binary...], --bin=[Binary...]  Binary input (do not apply 0b prefix)
      Output formating options:
        -f, --full                        Prints advanced output
        -s[4 or 8], --binary-spacing=[4
        or 8]                             Prints spaces in between every forth
                                          binary bit or every byte
        --tb, --truncate-binary           Truncates binary output to least
                                          significant '1'
        -H, --cap-hex                     Prints all hexadecimal output with
                                          capital letters
      Other options:
        --version                         Prints version information
      -?, --help                        Display this help menu

    Author: David Ryan
    ~ ALL TO HIM

Road Map

  • Binary Parsing
    • Hex and nibble matching
    • copy output to clipboard
    • parse and convert csv file
      • output to file

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.