Skip to content

Dev-Toledo/universal-base-converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Base Converter (2-36)

Language License

High-performance numerical base converter written in C++. It handles conversions between any base from binary (2) to hexatrigesimal (36), ensuring precision and speed.

🚀 Features

  • Universal Conversion: Converts from any Base X to Base Y (where 2 <= X, Y <= 36).
  • Input Validation: robust error handling for invalid digits within a specific base.
  • Modern C++: Uses standard library features for efficient memory management.

🛠️ Installation & Usage

Prerequisites

  • A C++ Compiler (g++, clang, or MSVC)
  • CMake (optional, for building)

Building

g++ main.cpp -o converter
./converter

🧮 How it Works

The algorithm uses a two-step process to ensure accuracy:

Normalization: Converts the source number to Decimal (Base 10) using positional notation.

Transformation: Converts the decimal value to the target base using the Euclidean division algorithm.

👤 Author Caio Toledo - LinkedIn

About

A robust C++ command-line interface for numerical base conversion ranging from binary to hexatrigesimal.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors