Skip to content

Sistem Bilangan Digital Konversi || Number System Conversion

License

Notifications You must be signed in to change notification settings

violawa/numberconverter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

KONVERSI SISTEM BILANGAN DIGITAL/THE CONVERSION OF DIGITAL NUMBER SYSTEM IN PYTHON GUI

INA Ver Konversi sistem bilangan digital adalah proses mengubah representasi angka dari satu sistem bilangan ke sistem bilangan lainnya. Terdapat beberapa sistem bilangan digital yang umum digunakan, yaitu sistem bilangan biner (basis 2), sistem bilangan oktal (basis 8), sistem bilangan desimal (basis 10), dan sistem bilangan heksadesimal (basis 16).

ENG Ver The conversion of digital number systems is the process of changing the representation of numbers from one number system to another. There are several commonly used digital number systems, namely the binary number system (base 2), the octal number system (base 8), the decimal number system (base 10), and the hexadecimal number system (base 16).

Pastikan Library Tkinter terinstall, biasanya sudah terinstal secara otomatis bersamaan dengan instalasi Python pada sistem operasi Windows dan macOS. Kalau menggunakan Linux, mungkin perlu menginstalnya terpisah. cara untuk install Tkinter :

Windows dan macOS:

    jalankan perintah ini di command prompt atau terminal:

    python -m tkinter

Linux: Untuk Debian dan Ubuntu:

    Buka terminal dan jalankan perintah :
    sudo apt-get update
    sudo apt-get install python3-tk


    Untuk Fedora:

    Buka terminal dan jalankan perintah berikut:
    sudo dnf install python3-tkinter

    Untuk CentOS:

    Buka terminal dan jalankan perintah :
    sudo yum install python3-tkinter

Membuat tampilan GUI

root = tk.Tk() root.title("Konverter Bilangan")

Dropdown Menu pilihan konversi

Dropdown menu untuk pilihan konversi

"1. Desimal ke Biner"
"2. Desimal ke Okta"
"3. Desimal ke Heksadesimal"
"4. Biner ke Desimal"
"5. Biner ke Okta"
"6. Biner ke Heksadesimal"
"7. Okta ke Desimal"
"8. Okta ke Biner"
"9. Okta ke Heksadesimal"
"10. Heksadesimal ke Desimal"
"11. Heksadesimal ke Biner"
"12. Heksadesimal ke Okta"

GUI

LICENSE

Check on License File

https://github.com/violawa/numberconverter/blob/main/LICENSE