当前位置:网站首页>十六进制编码简介
十六进制编码简介
2022-07-03 08:06:00 【AI-剁椒鱼头】
十六进制简介
十六进制是一个以16为基数的计数系统,这意味着每个数字代表16个不同的数字,而不是以10为基数的系统中的10个数字。系统通常用数字0-9表示前10位,然后用字母A-F表示后6位。它不是一种历史上的计数系统,但它起源于电子时代,因为它是一种对二进制系统相当友好的扩展方式。
计算机使用一种简单的2进制计数系统,称为二进制。然而,这对于人类的交互是相当麻烦的。十六进制提供了一种更有效的方法来关联二进制值,这是因为16是2的四次方,所以一个数字可以看成是四个二进制数字。
换句话说,二进制中的任何四位值都可以表示为“十六进制”的一位数字,二进制中的八位值可以表示为十六进制的两位数字,以此类推。这与我们通常使用的base-10系统形成了对比,后者不会均匀地匹配任何一致倍数的二进制数字。
虽然在计算中使用了更大的基本系统,比如base-32系统和base-64系统,但是十六进制对于大多数人来说更容易交互,所以它仍然是最普遍的。Base-32和base-64都在计算方面有应用,但它们很少用于任何地方,而是用于最深层的编码。
十六进制编码表
| 码值 | 字符 | 2进制 |
|---|---|---|
| 0 | 0 | 0000 |
| 1 | 1 | 0001 |
| 2 | 2 | 0010 |
| 3 | 3 | 0011 |
| 4 | 4 | 0100 |
| 5 | 5 | 0101 |
| 6 | 6 | 0110 |
| 7 | 7 | 0111 |
| 8 | 8 | 1000 |
| 9 | 9 | 1001 |
| 10 | A | 1010 |
| 11 | B | 1011 |
| 12 | C | 1100 |
| 13 | D | 1101 |
| 14 | E | 1110 |
| 15 | F | 1111 |
使用工具 http://www.lzltool.com/hex 可以在线解析十六进制,将十六进制转换成字符串或Base64、或Base64Url格式
边栏推荐
猜你喜欢

MAE
![[set theory] order relation (the relation between elements of partial order set | comparable | strictly less than | covering | Haas diagram)](/img/df/a034032e203e7935dafaf8a71cb6c8.jpg)
[set theory] order relation (the relation between elements of partial order set | comparable | strictly less than | covering | Haas diagram)

LwIP learning socket (application)

C#课程设计之学生教务管理系统

haproxy+keepalived集群搭建02

Iterm2 setting

Free use until 2015 -- viz artist multi touch plug-in package

WorldView卫星遥感影像数据/米级分辨率遥感影像

I want to do large screen data visualization application feature analysis

Basic operation and process control 2
随机推荐
Basic operation and process control 2
2020-12-12
什麼是定義?什麼是聲明?它們有何區別?
Shader foundation 01
What is BFC?
Lua framwrok framework starts
Microsoft Security Response Center
一条通往服务器所有端口的隧道
Generate video using clipout in viz engine
Golang中删除字符串的最后一个字符
Pulitzer Prize in the field of information graphics - malofiej Award
Storage of data
*p++、*++p、++*p、(*p)++
The difference between hdmi2.1 and hdmi2.0 and the conversion of PD signals.
C#课程设计之员工信息管理系统
Unity performance optimization
P2622 关灯问题II(状态压缩 搜索)
register关键字
Worldview satellite remote sensing image data / meter resolution remote sensing image
unity2019_ Input management