当前位置:网站首页>进制的特性
进制的特性
2022-07-27 05:03:00 【real代码渣渣】
进制
进制也就是进位制,是人们规定的一种进位方法。 对于任何一种进制—X进制,就表示某一位置上的数运算时是逢X进一位。 十进制是逢十进一,十六进制是逢十六进一,二进制就是逢二进一
数制是人们利用符号进行计数的科学方法。数制有很多种,在计算机中常用的数制有:十进制,二进制和十六进制。
数制也称计数制,是指用一组固定的符号和统一的规则来表示数值的方法。计算机是信息处理的工具,任何信息必须转换成二进制形式数据后才能由计算机进行处理,存储和传输。
1、十进制
日常使用
特点:满10进1
计数:0 1 2 3 4 5 6 7 8 9 10 11 12
单位数字:10个(0-9)
2、二进制
计算机底层
特点:满2进1
计数:0 1 10 11 100 101 110 111
单位数字:2个(0-1)
扩展:所有数据在计算机底层都是以二进制的形式保存
二进制数的加法和乘法运算如下:
0+0=0 0+1=1+0=1 1+1=10
0×0=0 0×1=1 1×0=0 1×1=1
3、八进制
用的较少
特点:满8进1
计数:0 1 2 3 4 5 6 7 10 11 12 13 14 15 16 17 20
单位数字:8个(0-7)
4、十六进制
和二进制搭配使用
特点:满16进1
计数:0 1 2 3 4 5 6 7 8 9 a b c d e f 1a 1b 1c 1d 1e 1f 20
单位数字:16个(0-f)
边栏推荐
- Carmaker quick start lesson 4 developing 48V P1 hybrid system
- Redis publish subscribe mode
- Flask的使用
- Utility gadget: kotlin code snippet
- Share a multiple-choice question about the process of program compilation (including a brief discussion on the compilation process, the formation and merging process of symbol tables)
- 图片上传的逻辑
- 小米商城项目_注册
- 6 zigzag conversion of leetcode
- Cenos7更新MariaDB
- Program environment and preprocessing (Part 1): how does a program run successfully?
猜你喜欢

分享一道关于变量的选择题(内含全局变量、局部变量、变量的作用域、生命周期知识点)

Share a multiple-choice question about define (including the replacement rules, program environment and preprocessing related knowledge of define during precompiling)

Looking at the PK of alphago and Li Shishi from a deep perspective

李宏毅机器学习组队学习打卡活动day02---回归

DNSmasq使用总结

C WPF uses listbox to implement ruler control

Carmaker quick start lesson 4 developing 48V P1 hybrid system

pytorch安装新坑

Li Hongyi machine learning team learning punch in activity day04 - Introduction to deep learning and back propagation mechanism

用户登录-以及创建、验证短信验证码
随机推荐
mysql 取消外键关联约束
后台用户管理展示添加功能实现
C语言初阶——分支语句(if,switch)
2021 Niuke multi school training camp 5 (question b)
Share a multiple-choice question about define (including the replacement rules, program environment and preprocessing related knowledge of define during precompiling)
封装JWT
Simplify the mybits framework of JDBC
李宏毅机器学习组队学习打卡活动day02---回归
Pytorch data type and numpy data are mutually transformed
C语言入门介绍
Pinball games
数据库迁移报错解决
分享一道关于程序编译过程的选择题(内含编译过程浅谈,符号表的形成合并过程)
numpy 数据类型转化
自己动手做一个爬虫项目
后台优惠券管理
Multiplication sorting in torch, * & torch. Mul () & torch. MV () & torch. Mm () & torch. Dot () & @ & torch. Mutmal ()
如何将Excel表格中的多列内容合并到一列
C语言指针入门详细介绍
蓝图-类视图方法