# Convert A String Containing A Binary, Octal And Hex Number Into A Decimal String?

Jun 7, 2009I'd like to convert a string which contains a decimal number into string that contains the binary value, the octal and the hexadecimal value of that decimal number.Afterwards I also like to convert a string containing a binary, octal and hexd. number into a decimal string.Basically I'm looking for the functions:

dec2bin

dec2oct

dec2hex

bin2dec

oct2dec

hex2dec

I'd not prefer to rewrite a function, I'm sure the framework must have these functions already.