formato en hexadecimal
This commit is contained in:
parent
fc7898d88a
commit
73278e1957
|
@ -1,17 +1,21 @@
|
|||
# hexadecimal
|
||||
|
||||
eng: numeral system in base 16: it uses 16 digits, from 0 to 9 and from 'a' to 'f'.
|
||||
numeral system in base 16: it uses 16 digits, from 0 to 9 and from 'a' to 'f'.
|
||||
|
||||
there's a direct mapping between each possible combination of 4 bits (nibble), and an hexadecimal (hex) digit:
|
||||
there's a direct mapping between each possible combination of 4 bits (bin), and an hexadecimal (hex) digit.
|
||||
|
||||
//
|
||||
a group of 4 bits is called a nibble.
|
||||
|
||||
esp: sistema numérico en base 16: utiliza 16 dígitos, del 0 al 9 y de la 'a' a la 'f'.
|
||||
sistema numérico en base 16: utiliza 16 dígitos, del 0 al 9 y de la 'a' a la 'f'.
|
||||
|
||||
hay un mapeo directo entre cada posible combinación de 4 bits (nibble), y un dígito hexadecimal (hex):
|
||||
hay un mapeo directo entre cada posible combinación de 4 bits (bin) y un dígito hexadecimal (hex).
|
||||
|
||||
a un grupo de 4 bits se le llama nibble.
|
||||
|
||||
# conversion
|
||||
|
||||
+ <table>
|
||||
+ <tr><th>binar(y/io)</th><th>hex</th><th>dec</th></tr>
|
||||
+ <tr><th>bin</th><th>hex</th><th>dec</th></tr>
|
||||
+ <tr><td>0000</td><td>0</td><td>0</td></tr>
|
||||
+ <tr><td>0001</td><td>1</td><td>1</td></tr>
|
||||
+ <tr><td>0010</td><td>2</td><td>2</td></tr>
|
||||
|
@ -29,7 +33,6 @@ hay un mapeo directo entre cada posible combinación de 4 bits (nibble), y un d
|
|||
+ <tr><td>1110</td><td>e</td><td>14</td></tr>
|
||||
+ <tr><td>1111</td><td>f</td><td>15</td></tr>
|
||||
+ </table>
|
||||
|
||||
& * 0000 is 0
|
||||
& * 0001 is 1
|
||||
& * 0010 is 2
|
||||
|
@ -49,14 +52,14 @@ hay un mapeo directo entre cada posible combinación de 4 bits (nibble), y un d
|
|||
|
||||
# 24 bits
|
||||
|
||||
eng: 24 bits correspond to:
|
||||
24 bits correspond to:
|
||||
|
||||
* 3 bytes
|
||||
* 4 {base64} digits
|
||||
* 6 hexadecimal digits
|
||||
* 8 {octal} digits
|
||||
|
||||
esp: 24 bits corresponden a:
|
||||
24 bits corresponden a:
|
||||
|
||||
* 3 bytes
|
||||
* 4 dígitos {base64}
|
||||
|
|
Loading…
Reference in New Issue