当前位置:网站首页>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).
边栏推荐
猜你喜欢
随机推荐
Anroid 组件化构架设计:细说为何需要使用组件化提高工程编译速度
闭包详解,柯里化的含义及操作方法
【C语言】C语言程序设计:动态通讯录(顺序表实现)
高精度乘法
翻译软件哪个准确度高【免费】
房间虚拟样板间vr制作及价格
C语言%(%d,%c...)
Blue Hat Cup 2022 web/misc writeup
Cache knowledge summary
关于弱监督学习的详细介绍——A Brief Introduction to Weakly Supervised Learning
Promote the high-quality development of denim clothing
Unity--URP渲染管线实战教程系列之URP摄像机核心机制剖析
高精度减法
CSAPP lab1 DataLab
Which translation software is more accurate [Free]
Talking about jsfuck coding
一条SQL查询语句是如何执行的?
小程序平台工具如何选择和使用?
proxy代理服务_2
postman+jmeter接口实例