Top "Base-conversion" questions

Base conversion is the process of changing the base of the textual representation of a number to another base.

Converting an integer to a hexadecimal string in Ruby

Is there a built in way to convert an integer in Ruby into its hexadecimal equivalent? Something like the opposite …

ruby hex base-conversion
Converting binary to decimal integer output

I need to convert a binary input into a decimal integer. I know how to go from a decimal to …

python python-2.7 binary integer base-conversion
Converting binary string to a hexadecimal string JAVA

I want to convert my binary(which is in string) to hexadecimal string also, this is just a program fragment …

java binary hex base-conversion
Base 10 to base 2,8,16 conversion in java

I'm in this Object Oriented class, but I just don't know how to do this. I know basic fundamentals but …

java string binary base-conversion
Base 10 to base n conversions

I'm trying to write a C++ program that does base-conversions. I want to convert a decimal number to all the …

c++ algorithm base-conversion
How to Print Hexadecimal Numbers in PHP or Java

I need to print some data (a little bit strange formatted). I was writing it in PHP with if ($num%10==9) …

java php algorithm base-conversion
Getting a hexadecimal number into a program via the command line

I can do this: int main(int argc, char** argv) { unsigned char cTest = 0xff; return 0; } But what's the right way …

c base-conversion strtol
PHP - Generate an 8 character hash from an integer

Is there a way to take any number, from say, 1 to 40000 and generate an 8 character hash? I was thinking of …

php hash base-conversion
Decimal-to-binary conversion

I want to convert decimal numbers to binary numbers. I want to store them in an array. First I need …

java arrays binary decimal base-conversion
Convert Binary to Decimal in MIPS, Assembly MARS

I am trying to convert binary to decimal in the MIPS language, using the MARS simulator. The program accepts a …

assembly mips base-conversion mars-simulator