当前位置:网站首页>Binary to decimal, decimal to binary
Binary to decimal, decimal to binary
2022-07-03 08:37:00 【Jiamei no error】
Hexadecimal conversion
Binary to decimal

Decimal to binary


The rules
One 、 Other decimal system to decimal system
1. Binary to decimal
The rules : Let's start at the lowest point ( On the right ), Extract the number in each bit , multiply 2 Of ( digit -1) Power , Then sum it
Example :1010 Convert to decimal
1010 ===> 0X2 1-1 + 1X22-1 + 0X23-1 + 1X24-1 = 10
2. Octal to decimal
The rules : Let's start at the lowest point ( On the right ), Extract the number in each bit , multiply 8 Of ( digit -1) Power , Then sum it
Example : 17 Convert to decimal
17 ===> 7X81-1 + 1X82-1 = 7 + 8 = 15
3. Hexadecimal to decimal
The rules : Let's start at the lowest point ( On the right ), Extract the number in each bit , multiply 16 Of ( digit -1) Power , Then sum it
Example :1AF Convert to Decimal system
1AF ===> 15X161-1 + 10X162-1 + 1X 163-1 = 15+160+256= 431
Two 、 Decimal to other bases
The rules : Divide the number that needs to be converted by 2/8/16( Binary system / octal / Hexadecimal ), Until Shang Wei 0, Then reverse the remainder of each step to the corresponding hexadecimal number
边栏推荐
- Base64 and base64url
- LinkList
- Kwai 20200412 recruitment
- Find the intersection of line segments
- Thymeleaf 404 reports an error: there was unexpected error (type=not found, status=404)
- Visual Studio (VS) shortcut keys
- Gradle's method of dynamically modifying APK package name
- Cloudcompare learning (1) - cloudcompare compilation and common plug-in implementation
- Talking about: is the HashSet set ordered or disordered /hashset set unique, why can we store elements with the same content
- Transmit pictures with Base64 encoding
猜你喜欢

Some understandings of 3dfiles

Animation_ IK overview

數據庫應用技術課程設計之商城管理系統

Notes on understanding applets 2022/7/3

Gradle's method of dynamically modifying APK package name

jupyter远程服务器配置以及服务器开机自启

Explain sizeof, strlen, pointer, array and other combination questions in detail

Installation of PHP FPM software +openresty cache construction

【更新中】微信小程序学习笔记_3
![[updating] wechat applet learning notes_ three](/img/05/958b8d62d3a42b38ca1a2d8631a7f8.png)
[updating] wechat applet learning notes_ three
随机推荐
Base64和Base64URL
简易入手《SOM神经网络》的本质与原理
Gradle's method of dynamically modifying APK package name
Un système de gestion de centre commercial pour la conception de cours de technologie d'application de base de données
[concurrent programming] working mechanism and type of thread pool
Osgconv tool usage
redis集群系列四
Mxone Pro adaptive 2.0 film and television template watermelon video theme apple cmsv10 template
二进制转十进制,十进制转二进制
Student educational administration management system of C # curriculum design
Osgearth target selection
Golang's range
Golang time format sorting
[concurrent programming] consistency hash
Unity editor expansion - the design idea of imgui
[linear table] basic operation of bidirectional linked list specify node exchange
Dealing with duplicate data in Excel with xlwings
Message pack in C deserializes array objects
Advanced OSG collision detection
【云原生】微服务之Feign的介绍与使用