Skip to content

VATARN/decimal-to-binary-convertor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Decimal to Binary Converter with Animation

Overview

This Decimal to Binary Converter is an educational web application designed to visually illustrate the process of converting decimal numbers to binary. In addition to providing the binary equivalent of a given decimal number, the app features an animation that demonstrates the call stack operations involved in the conversion process. This feature makes it particularly useful for those learning about recursive functions and binary number systems.

Features

  • Decimal to Binary Conversion: Converts any decimal number into its binary equivalent.
  • Interactive Call Stack Animation: For the decimal number 5, the app showcases a unique animation that visually represents the call stack operations in the recursive conversion process.
  • User-Friendly Interface: Simple and intuitive design, making it easy to use for both beginners and advanced users.
  • Input Validation: Checks and alerts if the user input is not a valid decimal number.

How to Use

  1. Open the Application: Load the HTML file in a web browser.
  2. Enter a Decimal Number: Type a decimal number into the input field.
  3. Convert: Click the 'Convert' button or press 'Enter' to see the binary equivalent of the entered decimal number.
  4. View Animation (Specific to 5): If the number 5 is entered, an animated illustration of the call stack operations is displayed.
  5. Reset: After conversion, enter a new number to convert another decimal to binary.

Installation

No installation is required. Download the HTML, CSS, and JavaScript files, and open the HTML file in a web browser.

Contributing

Contributions to enhance the app, such as adding more animations for other numbers or improving the UI, are welcome. Feel free to fork the repository, make your changes, and submit a pull request.

About

Decimal to Binary convertor using recursion

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published