An open API service indexing awesome lists of open source software.

https://github.com/0pkunal/decimal-to-binary-converter-in-python

A simple Python program to convert a decimal (base 10) number into its binary (base 2) equivalent.
https://github.com/0pkunal/decimal-to-binary-converter-in-python

python python-3 python3

Last synced: 9 months ago
JSON representation

A simple Python program to convert a decimal (base 10) number into its binary (base 2) equivalent.

Awesome Lists containing this project

README

          

# Decimal to Binary Converter

A simple Python program to convert a decimal (base 10) number into its binary (base 2) equivalent.

## Features
- Accepts an integer input in base 10.
- Outputs the binary representation.
- Handles zero as a special case.

## Usage
1. Clone the repository:
```bash
git clone https://github.com/0PKunal/Decimal-to-Binary-Converter-in-Python.git

2. Navigate into the folder:

```bash
cd Decimal-to-Binary-Converter-in-Python
```
3. Run the script:

```bash
python decimal_to_binary.py
```

## Example

```
Enter an integer (base 10): 10
The binary (base 2) of 10 is 1010
```

## File

* `decimal_to_binary.py` → Main program

## License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.

```
MIT License

Copyright (c) 2025 0PKunal

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
```

---


Made with ❤️ by 0PKunal


If this project helped you, please give it a ⭐️