Skip to content

The1Alain/base_converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 

Repository files navigation

base_converter

English

Reason I made this program :

I initialy found that the binary conversion process was extremely easy to get wrong without enough training but I also felt that AI would take too much time to convert wich is a waste of time when I wanted to train as much as possible, the solution I found was to make a python script that would convert it in the blink of an eye.

How to use script :

  • Execute the code
  • Pick the desired language
  • Pick the desired convertion
  • Put the number you wish to convert

How it was built :

The code contains many conditions and exceptions (mostly in the hexadecimal section) that makes it possible to convert the hexadecimal letters into decimal or bianray numbers. There are also many tables that use ranges so for each one detecyed in the binary nomber we can add a power of 2, the length of the table also makes it so that we can easily find the power of 2 that we need by just using the len() command.

Application of the code :

I said earlier that this code was used to help me train for highschool exams but it can have many more uses, for example it can simply be added to any python script to have a quick binary conversion without needing exterial libraries.

Français

Pourquoi j'ai fait ce programme :

Lors du chapitre de représentation de donnée, qu'il necessitait beaucoup d'entraînement pour éviter les fautes d'étourderie mais j'ai aussi constaté que l'IA perdait beaucoup de temps pour la convertion ce qui s'est révélé être une perte de temps lorsque je voulait faire le plus d'exemple possible.

Comment l'utiliser

  • Execute le script
  • Choisis la langue
  • Choisi la convertion
  • Met le nombre que vous souhaitez convertir

Comment il a été construit :

Le code contient de nombreuses conditions et exeptions (surtout dans la section hexadecimale) qui le rende impossible to convertir le

About

This is a python code I made to train for highschool exams about python and binary numbers that I built without any libraries that let's me convert numbers to decimal, binary and hexadecimal. (Le programme de conversions de bases marche aussi en français)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages