Most voted "hexadecimal" questions
The hexadecimal system is a positional numbering system that represents the numbers in base 16, thus employing 16 symbols. S = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E and F.}
Learn more…44 questions
Sort by count of
-
66
votes2
answers38176
viewsHow do hexadecimal numbers work?
I have seen that software libraries written in C, in general, use hexadecimal numbers. And Assembly programmers also need to be ninjas with this numerical system. It is not anywhere that one finds a…
-
45
votes3
answers3408
viewsHow to find out if a hexadecimal color is dark or light?
I have a status listing that is displayed and each status has an assigned color. These colors are saved in my database in hexadecimal format. Example: #add555 I have a small problem: If the color is…
-
17
votes4
answers12575
viewsWhat does "0x" mean at the beginning of hexadecimal numbers?
I realized that when it comes to hexadecimal numbers sometimes one is placed 0x in front. For example, 0xA1B2C3 instead of A1B2C3. What is that 0x means?…
hexadecimalasked 10 years, 5 months ago user7261 -
15
votes7
answers1690
viewsHexadecimal for RGB
How to convert a Hexadecimal color (#FFFFFF) for RGB (Red, GReen, BLue)? Example
-
13
votes3
answers4364
viewsWhat are decimal, hexadecimal, and octal notation numbers?
What are decimal (base 10), hexadecimal (base 16) and octal (base 8) notation numbers? In the book the code is like this: <?php // numero decimal $a = 1234; // numero octal (equivalente a 83 em…
hexadecimal decimal numerical-representation octalasked 9 years, 11 months ago João Paulo Vieira da Silva 1,933 -
13
votes3
answers614
viewsWhat happens to three-digit hexadecimal colors?
I’ve always been curious to know what happens in a 3-digit hexadecimal expression of a CSS color. For example, you have 000 and 000000, which is the black color. And fff or ffffff which is white.…
-
7
votes2
answers1287
viewsConvert Base16 string (Hexadecimal) to Base10 (Decimal)
I have the following string "615769EF", hexadecimal. How to convert it to base10 and let the result be the string "01633118703" ?
-
6
votes4
answers696
viewsHow to create hexadecimal colors randomly?
How can I create color code in hexadecimal randomly with PHP? For example, from #000000 at the #FFFFFF, to generate something like this: <div style="color: <?= rand_color()?>"> Estou…
-
5
votes3
answers1527
viewsHow to find the negative of a color in hexadecimal?
I would like to know what calculation I can use in language like javascript, php or python to discover the negative of a cor hexadecimal. Example: If the white negative is black, then I: `#FFFFFF…
hexadecimalasked 9 years ago Wallace Maxters 102,340 -
5
votes1
answer342
viewsJava, convert floating point hexadecimal value
I am developing an application that receives data from a GPS board, the data is received by bluetooth in hexadecimal, the latitude and longitude values are floating points of 64 bits, which follows…
-
5
votes1
answer386
viewsHelp with 16bit Hexadecimal RGB colors
So I’m creating an editor of a PS2 football game in C#. And the game’s "color system" is RGB, and by then it was all going very well, because I was coming across "normal" Hex codes in the game like…
-
5
votes2
answers1339
viewsHow to convert negative decimal numbers to hexadecimal
I was able to pass an integer number to hexadecimal. The problem now being tested is that the negative numbers do not work with this formula. This is the code I have: public class PPROG_pl6_ex8 {…
-
5
votes1
answer57
viewsPHP xf0 represents 0xF0?
If \xF0 represents a hexa as well as 0xF0, because their exit is different? echo "\xF0"; echo 0xF0; I can’t really find any information on that notation \xF0 in the PHP manual.…
-
4
votes2
answers211
viewsDisplays hexadecimal value in cmd.exe
I’m trying to show the sharp letter 'is' on cmd.exe through the hexadecimal, but the printf() only shows the value of the character itself. I’m trying the following: unsigned char eh = 0x82;…
-
4
votes1
answer979
viewsFunction that converts hexadecimal to binary
Is there any function equivalent to bin2hex() from PHP to C#? I need to convert a hexadecimal to binary. I tried to use the TryParse but it hasn’t worked out.
-
4
votes2
answers396
viewsConvert string value to hexadecimal without changing format
I am using the following code in a Class. public Int16 Endereco = 0x7302; byte[] Data = BitConverter.GetBytes(Endereco); Array.Reverse(Data); [...] I would like to receive the value for the variable…
-
3
votes2
answers681
views"Merge" elements of a single vector
I have a vector with four elements that are numbers represented in hexadecimal form. What I need to do is concatenate these four elements (I believe that this is not the right word, but I have not…
-
3
votes2
answers352
viewsCode help (appears to be hexadecimal)
Hello, in my course had a joke, who could decipher the code would win a prize, I tried in hexadecimal, but I did not get anything. 51 44 52 20 59 44 20 57 44 52 20 4a 48 51 57 4c 4f 50 48 51 57 48…
-
3
votes2
answers325
viewsByte validation through an image bit array
I am trying to validate an incoming image in an FTP folder. The images start with the bytes "FFD8" and end with the sequence "FFD9" so that there is the possibility to perform the check. I’m getting…
-
3
votes1
answer222
viewsC# How to send the value of the numericUpDown to the textbox in Hexadecimal?
then... the numericUpDown even has the count format in Hexadecimal, but when sending to texBox it counts only in decimal has some form of textbox to receive the Numeric given value in Hexadecimal? I…
-
3
votes2
answers560
viewsWhat exactly does '%02x' do?
I was seeing some examples function hash of Openssl and I came across the format specifier %02x. I do not know very well its purpose we codes that I saw. I even understand that the %02x serves to…
-
2
votes1
answer522
viewsHow can I generate a hexadecimal code from another sequence of numbers?
I’m making a code generator app, I need to generate a hexadecimal code from the code typed by the user and show this generated hexadecimal code. Could someone explain to me how I can get to this?…
-
2
votes2
answers816
viewsConvert hexadecimal to integer
I have this hexadecimal value "E365A931A000000". I need to convert it to integer I’m using the following code. string hex = "E365A931A000000"; CodLibercao = Convert.ToInt32(hex); This code is…
-
2
votes1
answer657
viewsGenerating a hexadecimal string
Good afternoon guys, I’m generating a random hexadecimal string in this pattern: 81c1328d-4dae-4af7-9974-893bb8ec90d4 But I would like to optimize this code here: public String geraKee(){ String…
-
2
votes1
answer3401
viewsConvert hexadecimal string to C-readable output
I would like to save a text in hexadecimal, and calling a function, the hexadecimal string is converted to a readable char string, i.e., decoding the hexadecimal, for example 0x6f0x69 for oi. I…
-
2
votes1
answer69
viewsConversation from hexa to int and toupper do not work
I need help with this code because I believe three functions however hexToInt function is not properly converting only works conversation if hexa is an integer type 19 and not A or 1D. and the…
-
2
votes3
answers172
viewsIs it possible to find darker/lighter shades from a hexadecimal?
Given any color in the notation Hexadecimal, is it possible to find the same in lighter or darker tones? example... div { height: 50px; width: 150px; display: inline-block; text-align: center;…
-
1
votes2
answers1272
viewsConvert int to Hex
what I want to do is possible? convert the value variable to Hex. private void button1_Click(object sender, EventArgs e) { int value = 255; byte[] buffer = new byte[5]; buffer[0] = 0xff; buffer[1] =…
-
1
votes1
answer315
viewsDoubt on how to use Shift in Java
Well, I have a question about how to use Shift Left in java. I have a String representing a hexadecimal value. Only I need to pass this value to binary. For this I use an integer variable to turn…
-
1
votes2
answers5037
viewsDecimal to hexadecimal conversion
I need to do a python algorithm to make a decimal to hexadecimal converter. But I can’t use ifs or ready-made functions, like Hex(). I did, but when I went to print the value in hexa I used…
-
1
votes1
answer682
viewsHow to convert 32(24) bit color to 16 bit?
So guys, I’m in big trouble rsrs, I’m creating an editing tool for a PS2 football game. And this game has two "systems" of colors, which are they: The "normal" RGB that is; R: 0 to 255, G: 0 to 255,…
-
1
votes1
answer609
viewsWorking with Hexadecimal in Java
I saw an example of code on the Java documentation site on bit that can be checked here. This class belongs to the example cited in link above: class BitDemo { public static void main(String[] args)…
java characteristic-language operators int hexadecimalasked 7 years, 6 months ago Pena Pintada 4,678 -
1
votes2
answers148
viewsIncrease color hue
I have for example the following color in Hex #FAC328 and would like, via code, to increase its tone to another 10% staying this way It is possible to do this via javascript?…
-
0
votes0
answers360
viewsbarcode in android printer Bluetooh
I can print anything but the barcode I currently use: byte[] cmd = new byte[3]; cmd[0] = 0x1b; cmd[1] = 0x21; cmd[2] &= 0xEF; out.write(cmd); out.write("Mensagem de teste \n".getBytes()); The…
-
0
votes0
answers230
viewsWhat types of javascript encryption?
I was going through some code on the net and I saw that some scripts were encrypted. I couldn’t get Code right by Hexdecoder, because there’s probably more than one kind of encryption in the code.…
-
0
votes1
answer2936
viewsHow do I print a hexa in c through the printf?
//example mascara=0xFF; blue= COR1 & mascara;//color a macro I used printf("%s\n", blue);//doubt bold
-
0
votes2
answers2572
viewsHow to change button color using RGB or Hexadecimal code?
I have a Winforms application and would like to use colors that are not in the presets of the object Color, how could I do that ? By way of example: How the code is found: this.btnLogout.BackColor =…
-
0
votes1
answer50
viewsHow to convert the positive value of an aob into a negative value?
Hello someone can help me with the following question ? Example I have an aob that represents an item (cigarette) in a game ... XX XX XX XX XX XX XX = cigarette Xx XX XX XX XX XX XX XX 01 = 1…
hexadecimalasked 6 years, 6 months ago Bonne Mort 9 -
0
votes1
answer80
viewsSocket Hex with checksum
I’m developing a communication socket between a tracker and the server. The socket is working perfectly. My problem is with communication when it comes to checking the checksum. The device sends a…
-
0
votes2
answers82
viewsHow to work with binary data
I have a function in C that takes two bytes one with higher significant value (msb) and the other with lower value (lsb) and then converts them to decimal. int get_pea(char *buffer) { char lsb[8],…
-
0
votes0
answers1029
viewsHow to convert from Hexadecimal to binary
Good actually I got in brute force wanted to know, there is another way to do my code mathematically #include <stdio.h> #include <string.h> int main(int argc, char** argv) { char…
-
0
votes1
answer145
viewsHow to convert hexadecimal to binary in a matrix in r?
I have a matrix with hexadecimal number, so: [,1] [,2] [,3] [1,] "FA" "F8" "D0" [2,] "CE" "17" "6A" [3,] "0E" "D6" "22" If I try to convert into binary, with hex2bin(matriz) (biblioteca BMS), is…
-
0
votes1
answer114
viewsHow to convert hexadecimal to decimal received by socket
I need to convert a hexadecimal entry in the client to decimal, but I couldn’t find information on how to do this. Example of socket server: byte[] HEXA = {(byte)0x00, (byte)0x96, (byte)0x07,…
-
-1
votes1
answer28
viewsI can’t change backgroundcolor using javascript to generate random colors
// randomColor() funcionando perfeitamente, gerando codigos hex entre "" function randomColor() { const hex = (Math.random()*0xFFFFFF<<0).toString(16); return `"#${hex}"`; } /* Em teoria…