当前位置:网站首页>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).
边栏推荐
猜你喜欢
随机推荐
【C语言】初识指针
[uniapp] uniapp WeChat applet development: no such file or directory error when starting the WeChat developer tool
Google Chrome73~81版本浏览器的跨域问题解决方案
Timers, synchronous and asynchronous APIs, file system modules, file streams
How to bounce the shell
PlaidCTF 2022 Amongst Ourselves: Shipmate writeup
ROS实验笔记之——安装QPEP以及Intel-MKL
打开老项目项目的报错(以高德地图demo为例)
[C Language Chapter] Detailed explanation of bitwise operators (“<<”, “>>”, “&”, “|”, “^”, “~”)
Talking about cors
vr虚拟仿真教学系统应用场景开发
多语种翻译-多语种翻译软件免费
Mathematical modeling preparation knowledge
高性能MySQL核心整理强势来袭
花环灯问题
"Linux" pagoda panel set up MySQL slow query log, not walk index log
GoldenGate中使用 exp/imp 进行初始化
6.0深入理解MySQL事务隔离级别与锁机制
从Todolist入门Svelte框架
浅析工业互联网