[{"createTime":1735734952000,"id":1,"img":"hwy_ms_500_252.jpeg","link":"https://activity.huaweicloud.com/cps.html?fromacct=261f35b6-af54-4511-a2ca-910fa15905d1&utm_source=V1g3MDY4NTY=&utm_medium=cps&utm_campaign=201905","name":"华为云秒杀","status":9,"txt":"华为云38元秒杀","type":1,"updateTime":1735747411000,"userId":3},{"createTime":1736173885000,"id":2,"img":"txy_480_300.png","link":"https://cloud.tencent.com/act/cps/redirect?redirect=1077&cps_key=edb15096bfff75effaaa8c8bb66138bd&from=console","name":"腾讯云秒杀","status":9,"txt":"腾讯云限量秒杀","type":1,"updateTime":1736173885000,"userId":3},{"createTime":1736177492000,"id":3,"img":"aly_251_140.png","link":"https://www.aliyun.com/minisite/goods?userCode=pwp8kmv3","memo":"","name":"阿里云","status":9,"txt":"阿里云2折起","type":1,"updateTime":1736177492000,"userId":3},{"createTime":1735660800000,"id":4,"img":"vultr_560_300.png","link":"https://www.vultr.com/?ref=9603742-8H","name":"Vultr","status":9,"txt":"Vultr送$100","type":1,"updateTime":1735660800000,"userId":3},{"createTime":1735660800000,"id":5,"img":"jdy_663_320.jpg","link":"https://3.cn/2ay1-e5t","name":"京东云","status":9,"txt":"京东云特惠专区","type":1,"updateTime":1735660800000,"userId":3},{"createTime":1735660800000,"id":6,"img":"new_ads.png","link":"https://www.iodraw.com/ads","name":"发布广告","status":9,"txt":"发布广告","type":1,"updateTime":1735660800000,"userId":3},{"createTime":1735660800000,"id":7,"img":"yun_910_50.png","link":"https://activity.huaweicloud.com/discount_area_v5/index.html?fromacct=261f35b6-af54-4511-a2ca-910fa15905d1&utm_source=aXhpYW95YW5nOA===&utm_medium=cps&utm_campaign=201905","name":"底部","status":9,"txt":"高性能云服务器2折起","type":2,"updateTime":1735660800000,"userId":3}]
①十六进制转十进制:
如123.45。从小数点左边,从右往左,从0开始依次标号:2 1 0。小数点右
边,从左往右,从-1开始标号为:-1 -2。标号为16的次数。
②十进制转十六进制:
如432.1。整数部分432÷16取余直到商为0,小数部分0.1×16取整,再用新的小数部分×16直到小
数为0(或者到认为合适的小数精度为止)
整数部分从下到上1 B 0,11转为十六进制为B
小数部分:从上到下取整数部分为1 9
最终十进制数432.1 转为十六进制为 1B0.19。
③十六进制转二进制:每1个数字化为4位二进制
十六进制A3:
A:1010;
3: 0011
转为二进制结果为1010 0011
④二进制转16进制:8421,四位一并,下面是1就将对应的实数相加
⑤八进制转十进制:同十六进制转八进制,将16换为8。
如八进制123.45中的每一位×8的n次方
⑥十进制转八进制:同十进制转十六进制,将16换为8
如将十进制432转为八进制结果为660:
⑦二进制转八进制:三位一并,以小数点为基准,向左右两个方向,不够补0。3位二进制为一组化为八进制。
如00 101 011 101.010 111转为八进制结果为0535.27
⑧八进制转二进制:每一个数字转为三位二进制。
如八进制432转为二进制:
4:100;
3:011;
2:010;
结果为100 011 010。
⑨十进制转二进制:同十进制转16进制,将16换为2。整数部分÷2从下到上取余直到商为0,小数部分×2从上到下取整直到小数为0(或者到认为合适的小数精度为止)。
如整数43转为二进制011:
⑩二进制转十进制:同二进制转10进制,将16换为10。从小数点往左依次标号:0,1,2......
从小数点往右依次标号:-1,-2......
如二进制101.10转十进制:
⑪十六进制转八进制:十六进制先转二进制③,二进制再转八进制⑦
⑫八进制转十六进制:八进制先转二进制⑧,二进制再转十六进制④
总结:2,8,10,16进制
十进制转目标进制:整数部分÷目标进制取余商为0,从下往上;小数部分×目标进制取整,从上往下
原始进制转十进制:小数点为基准,从小数点左边,从右往左依次标:0,1,2......从小数点右边,从左往右依次标-1,-2......
即......3,2,1,0 . -1,-2......
每位数×原始进制的下标次方之和
以小数点为基准,向左右两边,不够补0。
二进制转八进制:三位一并
二进制转十六进制:四位一并(8421)
八进制转二进制:每1位数字分为三个二进制
十六进制转二进制:每一位数字分为四个二进制
十六进制与八进制互转:分别转为二进制
十进制二进制八进制十六进制
000
0
1111
21022
31133
410044
510155
611066
711177
81000108
91001119
10101012A/a
11101113B/b
12110014C/c
13110115D/d
14111016E/e
15111117F/f
16100002010