Php converts a 20-bit 62-digit string to a 10-digit string. At present, {code...} can be used to convert a super-long decimal integer to the 62 hexadecimal notation. However, due to system restrictions, it will become a number such as 9.9999999991447
5.8. hexadecimal. 2
5.8.1 hexadecimal
DescriptionIn hexadecimal notation, we will first ask: there are only 10 Arabic numerals in total: 0, 1, 2, 3, 4, 5, 6, 7, 8, and 9, how can we express the concept of "every 16 to 1? The method is to use English
Binary, octal, decimal, hexadecimal conversion, binary hexadecimal1. Preface
The most boring thing during each holiday is that you don't want to get up or eat. Founder just doesn't want to move, lie in bed, watch the mobile phone, and brush QQ space
Hexadecimal conversion, hexadecimal to hexadecimal
I. Numerical and numeric Conversion
(1) Number System
Binary is used in computers, because binary is easy to operate, easy to implement, and reliable, providing a favorable way for logical design
Basic knowledge
Decimal The base number is 10, and every 10 goes into 1. In decimal format, a total of 10 different numeric symbols are used. When these symbols are in different positions, their weights are different.
Binary The base number is 2,
Java programming those things 7-the concept of hexadecimal Author: Chen yuefeng from: http://blog.csdn.net/mailbomb
1.2 hexadecimal ConceptBecause it is impossible to create a symbol for each value, a composite value needs to be combined with a
It is estimated that the first impression is atoi. In fact, it is not easy to use atoi when it encounters "0x1234", and I think it is best to use strtol and strtoul:
Http://huigezrx.blog.163.com/blog/static/3210165220102472843690/ from:
Strtol
When using Sina Weibo APIs, we sometimes need to get a Weibo url, but the Weibo status field obtained from interfaces such as statusespublic_timeline does not include any, status contains a mid field. we can calculate the url through mid.
Before
However, status contains a mid field. We can actually obtain the url through mid calculation.
Before starting the calculation, it is necessary to describe what is base62 encoding. It is actually an interchange between decimal and 62-digit. For the 62
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.