How can I convert a number contained in a string from any base to any other base? Bases can be anything i.e.: 2, 16, 10, 4, 8, 9.
Is there a way to take any number, from say, 1 to 40000 and generate an 8 character hash? I was thinking of using base_convert but couldn\'t figure out a way to force it to b开发者_StackOverflow中文版
I can do this: int main(int argc, char** argv) { unsigned char cTest = 0xff; return 0; } But what\'s the right way to get a hexadecimal number into the program via the command line?
Given a binary number that repeats, for example 0.(0011) or 0.0(101), how would one go about converting it to decimal?
I\'d like to convert base 10 numbers to base 31 I would like to use only these characters: 23456789abcdefghjkmnpqrstuvwxyz