How do you convert the following binary number to Hexadecimal?  0112 1111?
108350
Umm, you can't really have a digit of 2 in a binary number.  Try going to http://www.geocities.com/binary_converter/ for a web program to convert numbers
403722
1,11,21,1211,111221....\n\n312211,13112221,1113213211\n\n\nBTW i love this riddle, i use it on for my chess team for brain warm-ups
32238
If you write the codes for 16 digits in binary out -\n\n0000 - 0\n0001 - 1\n0010 - 2\n0011 - 3\n0100 - 4\n0101 - 5\n0110 - 6\n0111 - 7\n1000 - 8\n1001 - 9\n1010 - A\n1011 - B\n1100 - C\n1101 - D\n1110 - E\n1111 - F\n\nThen take 3E7C, match the four digits on the chart:\n\n0011 1110 0111 1100 =\n\n11111001111100\n\nThats hex to binary conversion, to decimal, you just add your exponents of two, reading binary number from right to left:\n\n2^2 + 2^3 + 2^4 + 2^5 + 2^6 + 2^9 + 2^10 + 2^11 + 2^12\n\n= \n\n15996\n\nI admit there's a more direct path to the number, but rememebring the way above allows you do any decimal/binary/hex conversion neededed, so its all I've remembered.
150167
(a) 111100111101\n(b) 110001011
314000
since they are all stored as binary all you need to do is display the results as either octal or decimal.\n//**************************************\n//INCLUDE files for :Convert Hex,dec,oct\n//**************************************\n#include <iostream.h>\n#include <conio.h> //for clrscr() & getche()func\n#include <stdlib.h> // for exit() function...\n//**************************************\n// Name: Convert Hex,dec,oct\n// Description:Converts an inputed number to Hex, dec, or oct.\nThe code was mainly written for education purposes.\n// By: Vagabond\n//\n//\n// Inputs:Inputs are from a main menu screen\n//\n// Returns:None\n//\n//Assumes:None\n//\n//Side Effects:None\n//This code is copyrighted and has limited warranties.\n//Please see http://www.Planet-Source-Code.com/xq/ASP/txtCodeId.10360/lngWId.3/qx/vb/scripts/ShowCode.htm\n//for details.\n//**************************************\n\n//****************************************************************************//\n// //\n// Program Name : ConvDec.cpp //\n// //\n// Programmer : Vagabond//\n//: Novice C++ //\n// //\n// Description : The user is asked to input a number in either Hex, Octal or //\n//Decimal, which is then converted to Hex, Octal & Decimal. //\n//The user can exit the program from the MAIN MENU or by//\n//the Escape key after each convertion.//\n// //\n//Compiler : Borland Turbo C++ v4.5.//\n// Date : 16/03/2006 //\n// //\n//****************************************************************************//\n#include <iostream.h>\n#include <conio.h>// for clrscr() & getche() functions...\n#include <stdlib.h> // for exit() function...\nconst int ESC = 27; // Used for escape sequince\nint main()\n\n\n    {\n    int key = 0;\n    int choise = 0;\n    long number;\n    while(key != ESC)\n\n\n        {\n        cout << "Choose Your Number Base&#92;n";\n        cout << "&#92;n&#92;t1. Hexadecimal.";\n        cout << "&#92;n&#92;t2. Octal.";\n        cout << "&#92;n&#92;t3. Decimal.";\n        cout << "&#92;n&#92;t4. Exit.&#92;n&#92;t";\n        cin >> choise;\n        switch(choise)\n\n\n            {\n            case 1: clrscr();\n             cout << "Enter a Hex number: ";\n             cin >> hex >> number;\n             cout << "&#92;n value in octal = "\n             << oct << number << endl;\n             cout << " value in decimal = "\n             << dec << number << endl;\n             break;\n            case 2: clrscr();\n             cout << "Enter a Octal number: ";\n             cin >> oct >> number;\n             cout << "&#92;nvalue in hex = "\n             << hex << number << endl;\n             cout << " value in decimal = "\n             << dec << number << endl;\n             break;\n            case 3: clrscr();\n             cout << "Enter a dec number: ";\n             cin >> dec >> number;\n             cout << "&#92;n value in octal = "\n             << oct << number << endl;\n             cout << "value in hex = "\n             << hex << number << endl;\n             break;\n            case 4: clrscr();\n             cout << "Program terminated by user...";\n             exit(0);\n             break; //Unreachable code.... \n            default : clrscr();\n             cout << "ERROR ~ Invalid selection&#92;n&#92;n";\n             break;\n            }\n            cout << "Press any key to continue or 'Esc' to exit";\n            key = getche();\n            clrscr();\n            }\n            cout << "Program terminated by user...";\n            return 0;\n
904666
Here is a super quick guide to learning to write numbers in binary...\n\nbinary uses 1/0 (on and off) to give value to numbers. This is why it is best used in computer language, because the computer can understand on and off. Now look at the following...\n\n1     \n2      \n4       \n8        \n16    \n32    \n64      \n128   \n\nNow,... notice the above... each number is equil to the number above it x2. this is the basis in learning binary...\n\nlets say we want to write the number  37....  we do the following...(read it from the bottom up)\n\n\n1        (there is one 1 in 1, this leaves us with 0 left over...)\n2        0\n4        (there is one 4 in 5, this leaves us with 1 left over....)\n8        0\n16      0\n32      (there is one 32 in 37, this leaves us with 5 left over...)\n64      0\n128    0\n\n\nso,... in binary, 37 would be   101001  (one 1, one 4, one32)\n\n\nusing the above we can learn to count to 10 !!!\n\n1   (1=1)\n01  (2=2)\n11  (2+1=3)\n001 (4=4)\n101 (4+1=5)\n011 (4+2=6)\n111 (4+2+1=7)\n0001 (8=8)\n1001 (8+1=9)\n0101 (8+2=10)\n\n\n\nthis is a very simple view of binary...\n\n\nhope this helps!!\n\n\n=)
359204
100 which is the binary equivalent of 4 if you are considering those 2 numbers to be added binary numbers
211557
111111 X 111111 = 12345654321
428515
Binary numbers use only one (1) and zero (0). \n\n10 in binary is 2 in decimal.\n11 in binary is 3 in decimal.\n110 in binary is 6 in decimal.\n\n(Decimal numbers are normal numbers.)
220005
Use a string. Calculate the first 16 digits, then put them into a string and subtract that number from your value and then use it as though its scientific notation. For example\n3.141592653589793 is the first 16 digits. So convert that to a string and then multiply your deriving value by 1,000,000,000,000,000 and start again. Then strip out the decimal and append to the string\n"2384626433832795"\nand then\n"0288419716939937", "5105820974944592", "3078164062862089",\n"9862803482534211", etc. \n\nThis should allow you a very large item.\n\n\nThe other option I can think of is declare an array 5 or 10 digits each and then store the numbers in there. That might work.\n\n\nEither way, good luck!
1157976
0000, 0001, 0002, 0003, 0004, 0005, 0006, 0007, 0008, 0009, 0010, 0011... etc, etc  untill u get to 9998, 9999\n\ntry it out, might take a long time but one combination will work :))
967975
2A11\n4D13\n12G17\n48J25\n240M41
865627
Binary\n101=5\n1010=10\n111=15\n10100=20\n11001=25\n\nAlternate add 7 and 5\n5+7\n12+5\n17+7\n24+5\n29\n\nDouble first and second alternatly\n1*2=2\n16*2=32\n2*2=4\n32*2=64\n4\n64\n\nLast one ????
161655
Divide the decimal number by 16.   Treat the division as an integer division.   \nWrite down the remainder (in hexadecimal). \nDivide the result again by 16.  Treat the division as an integer division.   \nRepeat step 2 and 3 until result is 0. \nThe hex value is the digit sequence of the remainders from the last to first. \ncheck here: http://www.permadi.com/tutorial/numDecToHex/
85305
This is 8 bit binary system.\nand u know, there are only two possibilities for a switch (on/off or 0/1).\nin binary syatem, as i have to take 10101000, to convert into decimal.\nfrom right to left:\n0*2^0 + 0*2^1 + 0*2^2 + 1*2^3 + 0*2^4 + 1*2^5 + 0*2^6 + 1*2^7 = 168 (it is the decimal form).\n\nsimilarly as we take 10110001\n\nthen its decimal is :\nfrom right to left : and increase pawer of 2 from 0 step 1.\n1*2^0 + 0*2^1 + 0*2^2 + 0*2^3 + 1*2^4 + 1*2^5 + 0*2^6 + 1*2^7 =  177
726738
Depends what Base you are using.\n\nIn decimal it is 1234602335680234\n\nIn Hexadecimal it is 0x123463677ABD69AC\n\nI'll leave other bases as an exercise for the student...
482674
Without resorting to a search of the web I have memorized the following digits. (I hope I don't mistype any):\n\n3.1415926535897932384626433832\n795028841971693993751058209749\n445923078164062862089986280348\n253421170679821480865132823066\n470938446095505822317253594081\n284811174502841027019385211055\n5964462294895493038196