Package: numbersystems
Number SystemsPython Module To Quickly Convert One Number System to Another.Number SystemsInstallationsUsageFunctionsFunctions To Check Input :Conversion Functions :Using Functionsbinchecker(n)decchecker(n)octchecker(n)hexchecker(n)dectobin(x)bintodec(x)dectooct(x)octtobin(x)octtodec(x)bintooct(x)hextobin(x)hextodec(x)hextooct(x)dectohex(x)bintohex(x)ErrorsInstallationsInstall usingpippipinstallnumbersystemsUsage:warning: Useconverterwhile importing the module, notnumbersystemsTo start using this Module, import itimportconverteror Wildcard importfromconverterimport*FunctionsFunctions To Check Input :binchecker():octchecker()decchecker()hexchecker()Conversion Functions :dectobin()bintodec()dectooct()octtobin()octtodec()bintooct()hextobin()hextodec()hextooct()dectohex()bintohex()Using Functions:exclamation: Always Try entering arguments asStringonly:exclamation: Conversion functions automatically check input arguments, you don't need to check them manuallybinchecker(n)Checks if passed argument is suitable for Binary System or not>>>binchecker('11011')True>>>binchecker('213')InvalidInputError:invalidBinaryNumber>>>decchecker(n)Checks if passed argument is suitable for Decimal System or not>>>decchecker('75412')True>>>decchecker('a34b')InvalidInputError:invalidDecimalNumber>>>octchecker(n)Checks if passed argument is suitable for Octal System or not>>>octchecker('752')True>>>octhecker('8249')InvalidInputError:invalidOctalNumber>>>hexchecker(n)Checks if passed argument is suitable for Hexadecimal System or not>>>hexchecker('7ac2')True>>>hexchecker('a34jrt')InvalidInputError:invalidHexadecimalNumber>>>dectobin(x)It Converts Decimal to Binary, takes Decimal value as Parameter, returns Binary equivalent>>>dectobin(2)10>>>bintodec(x)It Converts Binary to Decimal, takes Binary value as Parameter, returns Decimal equivalent>>>dectobin(101)5>>>dectooct(x)It Converts Decimal to Octal, takes Decimal value as Parameter, returns Octal equivalent>>>dectooct(12)14>>>octtobin(x)It Converts Octal to Binary, takes Octal value as Parameter, returns Binary equivalent>>>octtobin(12)1010>>>octtodec(x)It Converts Octal to Decimal, takes Octal value as Parameter, returns Decimal equivalent>>>dectooct(12)10>>>bintooct(x)It Converts Binary to Octal, takes Binary value as Parameter, returns Octal equivalent>>>bintooct(10101)25>>>hextobin(x)It Converts Hexadecimal to Binary, takes Hexadecimal value as Parameter, returns Binary equivalent>>>hextobin(15)10101>>>hextodec(x)It Converts Hexadecimal to Decimal, takes Hexadecimal value as Parameter, returns Decimal equivalent>>>hextodec(15)21>>>hextooct(x)It Converts Hexadecimal to Octal, takes Hexadecimal value as Parameter, returns Octal equivalent>>>hextooct(15)25>>>dectohex(x)It Converts Decimal to Hexadecimal, takes Decimal value as Parameter, returns Hexadecimal equivalent>>>hextobin(15)10101>>>bintohex(x)It Converts Binary to Hexadecimal, takes Binary value as Parameter, returns Hexadecimal equivalent>>>bintohex(10101)15>>>ErrorsIn case of the Wrong Type of Data given as an input to the Function,InvalidInputErroris raised.It is suggested to check the input value again if the Error is raised.If the input value to the function is fine, still Error rises, please open a newIssueon Github.