Skip to content

Commit 5a31430

Browse files
authored
Create README.md
1 parent 2b6a83e commit 5a31430

File tree

1 file changed

+85
-0
lines changed

1 file changed

+85
-0
lines changed

decimal_binary_converter/README.md

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
# 🔄 Decimal ↔ Binary Converter
2+
3+
A clean and simple **Tkinter GUI** app to convert between decimal and binary numbers in both directions.
4+
5+
---
6+
7+
## 🚀 Features
8+
9+
- 🔢 Convert **Decimal → Binary**
10+
- 🔄 Convert **Binary → Decimal**
11+
- ✅ Input validation with proper error messages
12+
- 🎯 Real-time display of the result
13+
14+
---
15+
16+
## 🛠️ Technologies Used
17+
18+
- 🐍 Python 3.x
19+
- 🎨 Tkinter (built-in GUI library)
20+
21+
---
22+
23+
## 📋 Usage
24+
From the Convert dropdown, choose one direction:
25+
26+
Dec → Bin to convert a decimal integer into binary
27+
28+
Bin → Dec to convert a binary string into decimal
29+
30+
In the Enter value field, type:
31+
32+
For Dec → Bin: a non-negative decimal integer (e.g., 42)
33+
34+
For Bin → Dec: a binary string containing only 0 and 1 (e.g., 101010)
35+
36+
Click the Convert button.
37+
38+
The converted result appears immediately below.
39+
40+
---
41+
42+
## 📌 Validation Rules
43+
Decimal → Binary:
44+
45+
Only non-negative integers (e.g., 0, 15, 128).
46+
47+
Binary → Decimal:
48+
49+
Only strings of 0s and 1s (e.g., 1011, 1100101).
50+
51+
If the input is invalid, an error dialog will pop up explaining the issue.
52+
53+
---
54+
55+
## 🌱 Future Improvements & Ideas
56+
🎨 Support for Additional Bases
57+
Add conversion between decimal, binary, octal, and hexadecimal.
58+
59+
🌐 Command-Line Version
60+
Provide a CLI interface that accepts arguments (e.g., python converter.py 42 -d2b).
61+
62+
📊 Batch Conversion
63+
Allow the user to load a text or CSV file containing multiple numbers and convert them all at once.
64+
65+
✨ Copy to Clipboard
66+
Add a “Copy” button so users can easily copy the result to their system clipboard.
67+
68+
🖍️ Themed UI
69+
Introduce a dark mode or different color themes for the GUI.
70+
71+
---
72+
73+
## 📜 License
74+
This project is released under the MIT License.
75+
76+
---
77+
78+
## ## 💻 voidcompile
79+
Stay updated with daily Python & AI projects on our channel:
80+
81+
📢 [github: @voidcompile](https://github.com/voidcompile)
82+
📢 [Telegram: @voidcompile](https://t.me/voidcompile)
83+
📢 [youtube: @voidcompile](https://www.youtube.com/@voidcompile)
84+
📢 [email: voidcompile@gmail.com]
85+

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy