Skip to main content

Basic Binary Converter

Project description

This is a programme that converts binary to decimal, and decimal to binary. DecToBin converts decimals to binary and BinToDec does the opposite. HexToDec converts hexadecimal to decimal and DecToHex does the opposite. E.g. Input - print(DecToBin(5)) Output - 101 These functions only accept integers and string as an inputs.

Change Log

0.0.1 (23/10/2022)

-First Release

0.0.2 (24/10/2022)

-DecToHex function added

0.0.3 (24/10/2022)

-HexToDec function added -Functions now accept string inputs

0.0.4 (25/10/2022)

-Improved error messages

0.0.5 (20/11/2022)

-HexToBin function added -BinToHex function added -Codes optimised to be slightly faster

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

PyConvertBinary-0.0.5.tar.gz (3.2 kB view details)

Uploaded Source

File details

Details for the file PyConvertBinary-0.0.5.tar.gz.

File metadata

  • Download URL: PyConvertBinary-0.0.5.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.8

File hashes

Hashes for PyConvertBinary-0.0.5.tar.gz
Algorithm Hash digest
SHA256 9830047d9921fc4b06a5f428d5753fb0e3edc3edc00edd7ef934eb2e24bc101e
MD5 c6921ec2f8ff05aa745bfb0b5eb36f57
BLAKE2b-256 4868ea0fe680951d0eea9b701ad477bdeb4f39bd77f500dd7bd53e5971316daf

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page