Home > Common Problem > body text

What is the carry rule for base r?

爱喝马黛茶的安东尼
Release: 2020-01-07 10:56:39
Original
12731 people have browsed it

What is the carry rule for base r?

R is actually an integer, which is commonly used such as R=2 (binary), R=8 (octal), R=16 (hexadecimal), and more A wide range of R can be any positive integer, which means that the base number advances by 1 when R occurs. Only the numbers 0~R-1 appear in the number, and R cannot appear. For example, when binary numbers advance by 1 when encountering 2, 2 will never appear; octal system Every 8 in a number advances to 1, and 8 never appears; in a hexadecimal number, every 16 advances to 1, and from 0 to F represents 0 to 15, there is never a 16; the more common decimal numbers we usually use advance to 1 every 10.

The R base system means that every R is advanced by 1, which means that R can be advanced one place. For example, the base system we often use is the decimal system, which is that every 10 is advanced by 1.

Example: 3 4=7, if there is no carry if it is not enough to 10, it is equal to 7.

27 45=72

First of all, 7 5 = 12>10, move one digit to the left, and all tens digits will be available, 2 4 1 (the 1 just entered) = 7 , the result is 72. Another example is the octal system, which advances 1 every 8.

3 4=7, 27 45=?

First: 7 5=8 4=14, 2 4 1 (the 1 just entered)=7, the result is: 27 45=74

MoreFAQ, please visit the PHP Chinese website.

The above is the detailed content of What is the carry rule for base r?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template