当前位置:网站首页>How to determine how many bases a number is?
How to determine how many bases a number is?
2022-08-10 23:41:00 【There are gods in the mountains】
Give a point a number and determine what base it is??
1, binary: only 0 and 1 in it
2, octal: each single number is between 0-7 (inclusive). Such as 175,023,312, etc.
3, hexadecimal
Its rule is "every hexadecimal one".
The base of hexadecimal number is 16,
The numbers used are 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F.
A-F represent decimal numbers 10-15 respectively.
The technical rule of hexadecimal numbers is "every hexadecimal one", and the weight of each bit is identified by the N power of 16.
The representation of hexadecimal numbers starts with 0x.
Example: 0xAF=175
Usually, for the representation of hexadecimal numbers, 16 or H can be marked in the lower right corner of the number, but in C language, the number 0 and the letter X are added in front of the number.0X to indicate.For example, 12AF is represented as 0X12AF in C language.
4. Decimal: each single number is between 0-9 (inclusive).
边栏推荐
猜你喜欢
随机推荐
N1BOOK writeup
高精度乘法
李宏毅机器学习-- Backpropagation
生态伙伴开发实践 | 智慧检测实验室应用系统快速接入指令集数字底座
数组 冒泡排序
性能不够,机器来凑;jvm调优实战操作详解
3d虚拟现实数字化展厅给予参观者充分的交互性和空间感
Kubernetes 选举机制HA
十年架构五年生活-08 第一次背锅
Redis - Use lua script to control the number of wrong passwords and lock the account
浅析工业互联网
缓存知识总结
62.【彻底改变你对C语言指针的厌恶(超详细)】
Geogebra 教程之 03 没有铅笔的数学
Cache knowledge summary
[C language articles] Expression evaluation (implicit type conversion, arithmetic conversion)
HGAME 2022 Week3 writeup
CSAPP lab
《剑指offer》题解——week2(持续更新)
HGAME 2022 Week2 writeup
![[C] the C language program design, dynamic address book (order)](/img/bb/b44066e91219a57b653e330198e4a0.png)








