Giter VIP home page Giter VIP logo

base_convert's Introduction

Base Converter

A SImple base Converter Script written in python.

Base Prefixes can be used
Binary "Binary", "b", "B", "2", "bin"
Hexadecimal "Hexadecimal", "h", "H", "16"
Decimal "Decimal", "d", "D", "2"
Octal "Octal", "o" , "O" ,"8"

use : base-convert value valueBase-toConverted Optional "-c", "--clean"

base-convert 123 d-h This will give decimal to hexadecimal Conversion

base-convert 123 d This will give decimal to all Conversion

base-convert 123 o This will give octal to all Conversion

base-convert 123 This will give decimal to all Conversion....etc

Use --help to get help menu.

Requirements

Python3 must be installed.

Exec this command to get the python3 path. which python3

Make sure the output is '/usr/bin/python3'.

If output does not match then try to install python from package manager.

UBUNTU/DEBIAN or derivatives

sudo apt install python3

if Python installation is well and output mathes you are good to go.

git clone https://github.com/niksingh710/base_convert.git
cd ./base_convert
chmod +x base-convert
sudo cp base-convert /usr/local/bin/

TO Remove

sudo rm /usr/local/bin/base-convert

After this restart your Terminal app.

Windows

windows user need to clone the repository. or can download the zip file from clone section. and then rename the file named base-convert to base-convert.py

then run the script using python.

TODO

  • Handle negative value for conversion
  • Add Fraction Conversion possibility to.

base_convert's People

Contributors

niksingh710 avatar

Stargazers

Arya Suman  avatar  avatar

Watchers

James Cloos avatar  avatar

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.