All Topics  
Radix

 

   Email Print
   Bookmark   Link






 

Radix



 
 
In mathematical numeral systems
Numeral system

A numeral system is a writing system for expressing numerals , and a mathematical notation for representing numbers of a given set, using graphemes or symbols in a consistent manner....
, the base or radix is usually the number of unique digits
Numerical digit

In mathematics and computer science, a digit is a symbol used in numerals , to represent numbers, in Positional notation numeral systems. The name "digit" comes from the fact that the 10 digits of the hands correspond to the 10 symbols of the common base 10 number system, i.e....
, including zero, that a positional
Positional notation

A positional notation or place-value notation system is a numeral system in which each position is related to the next by a constant multiplier, Geometric progression, called the radix or radix of that numeral system....
 numeral system
Numeral system

A numeral system is a writing system for expressing numerals , and a mathematical notation for representing numbers of a given set, using graphemes or symbols in a consistent manner....
 uses to represent numbers. For example, for the decimal
Decimal

The decimal numeral system has 10 as its Base . It is the most widely used numeral system....
 system (the most common system in use today) the radix is 10, because it uses the 10 digits from 0 through 9.

The highest symbol of a positional numeral system usually has the value one less than the value of the radix of that numeral system.






Discussion
Ask a question about 'Radix'
Start a new discussion about 'Radix'
Answer questions from other users
Full Discussion Forum



Encyclopedia


In mathematical numeral systems
Numeral system

A numeral system is a writing system for expressing numerals , and a mathematical notation for representing numbers of a given set, using graphemes or symbols in a consistent manner....
, the base or radix is usually the number of unique digits
Numerical digit

In mathematics and computer science, a digit is a symbol used in numerals , to represent numbers, in Positional notation numeral systems. The name "digit" comes from the fact that the 10 digits of the hands correspond to the 10 symbols of the common base 10 number system, i.e....
, including zero, that a positional
Positional notation

A positional notation or place-value notation system is a numeral system in which each position is related to the next by a constant multiplier, Geometric progression, called the radix or radix of that numeral system....
 numeral system
Numeral system

A numeral system is a writing system for expressing numerals , and a mathematical notation for representing numbers of a given set, using graphemes or symbols in a consistent manner....
 uses to represent numbers. For example, for the decimal
Decimal

The decimal numeral system has 10 as its Base . It is the most widely used numeral system....
 system (the most common system in use today) the radix is 10, because it uses the 10 digits from 0 through 9.

The highest symbol of a positional numeral system usually has the value one less than the value of the radix of that numeral system. The standard positional numeral systems differ from one another only in the radix they use. The radix itself is almost always expressed in decimal notation, because if the radix were expressed instead in the numeral system it was trying to describe, it would always be written as "10"—the radix of the binary system, two, is expressed in binary as "10"; the radix of the decimal system, ten, is expressed in decimal as "10"; the radix of the hexadecimal system, sixteen, is expressed in hexadecimal as "10", and so forth. The radix is an integer that is greater than 1 (or less than negative 1), since a radix of zero would not have any digits, and a radix of 1 would only have the zero digit. Negative bases are rarely used. In a system with a negative radix, numbers may have many different possible representations.

In certain non-standard positional numeral systems
Non-standard positional numeral systems

Non-standard positional numeral systems here designates numeral systems that may be denoted Positional notation, but that deviate in one way or another from the following description of standard positional systems:...
, including bijective numeration
Bijective numeration

Bijective numeration is any numeral system that establishes a bijection between the set of non-negative integers and the set of finite strings over a finite set of digits....
, the definition of the base or the allowed digits deviates from the above.

Sometimes, a subscript notation is used where the base number is written in subscript after the number represented. For example, indicates that the number 23 is expressed in base 8 (and is therefore equivalent in value to the decimal number 19). This notation will be used in this article.

Positional numbering system


For more specific information see the Numeral system
Numeral system

A numeral system is a writing system for expressing numerals , and a mathematical notation for representing numbers of a given set, using graphemes or symbols in a consistent manner....
 and Positional number system articles.


When describing radix in mathematical notation
Mathematical notation

A mathematical notation is a system of symbolic representations of mathematical objects and ideas. Mathematical notations are used in mathematics and the physical sciences, engineering and economics....
, the letter b is generally used as a symbol
Symbol

A symbol is something such as an entity, picture, written word, sound, or particular mark that represents something else by association, resemblance, or convention....
 for this concept, so, for a binary
Binary numeral system

The binary numeral system, or notation with a radix of 2. Owing to its straightforward implementation in digital electronic circuitry using logic gates, the binary system is used internally by all modern computers....
 system, b equals
Equality (mathematics)

Equality is the paradigmatic example of the more general concept of equivalence relations on a set: those binary relations which are reflexive relation, symmetric relation, and transitive relation....
 2. Another common way of expressing the radix is writing it as a decimal subscript after the number that is being represented. 11110112 implies that the number 1111011 is a base 2 number, equal to 12310 (a decimal notation representation), 1738 (octal
Octal

The octal numeral system, or oct for short, is the radix-8 number system, and uses the digits 0 to 7. Numerals can be made from Binary numeral system numerals by grouping consecutive digits into groups of three ....
) and 7B16 (hexadecimal
Hexadecimal

In mathematics and computer science, hexadecimal is a numeral system with a radix, or base, of 16. It uses sixteen distinct symbols, most often the symbols 09 to represent values zero to nine, and A, B, C, D, E, F to represent values ten to fifteen....
). When using the written abbreviations of number bases, the radix is not printed: Binary 1111011 is the same as 11110112.

The radix b may also be indicated by the phrase "base b". So binary numbers (radix 2) have base 2; octal numbers (radix 8) have base 8; decimal numbers (radix 10) have base 10; and so on.

Numbers of a given radix b have digits . Thus, binary numbers have digits ; decimal numbers have digits ; and so on. Thus the following are notational errors and do not make sense: 522, 22, 1A9. (In all cases, one or more digits is not in the set of allowed digits for the given base.)

Bases work using exponentiation
Exponentiation

Exponentiation is a mathematics operation , written 'an', involving two numbers, the base a and the exponent n....
. A digit's value is the digit multiplied by the value of its place. Place values are the number of the base raised to the nth power, where n is the number of other digits between the current digit and the decimal point. If the current digit is on the left hand side of the decimal point (i.e., it is greater than or equal to 1) then n is positive; if the digit is on the right hand side of the decimal point (i.e., it is fractional) then n is negative.

As an example of usage, the number 465 in its respective base 'b' (which must be at least base 7 because the highest digit in it is 6) is equal to:

If the number 465 was in base 10, then it would equal: (46510 = 46510)

If however, the number were in base 7, then it would equal: (4657 = 24310)

10b = b for any base b, since 10b = 1×b1 + 0×b0. For example 102 = 2; 103 = 3; 1016 = 1610. Note that the last "16" is indicated to be in base 10. The base makes no difference for one-digit numerals.

Numbers that are not integer
Integer

The integers are natural numbers including 0 and their negative and non-negative numberss . They are numbers that can be written without a fractional or decimal component, and fall within the set ....
s use places beyond a decimal point. For every position behind this point (and thus after the units digit), the power n decreases by 1. For example, the number 2.35 is equal to:

This concept can be demonstrated using a diagram. One object represents one unit. When the number of objects is equal to or greater than the base b, then a group of objects is created with b objects. When the number of these groups exceeds b, then a group of these groups of objects is created with b groups of b objects; and so on. Thus the same number in different bases will have different values:

241 in base 5: 2 groups of 5² (25) 4 groups of 5 1 group of 1 ooooo ooooo ooooo oooooooooo ooooo ooooo ooooo + + o ooooo oooooooooo ooooo ooooo ooooo

241 in base 8: 2 groups of 8² (64) 4 groups of 8 1 group of 1 oooooooo oooooooo oooooooo oooooooo oooooooo oooooooo oooooooo oooooooo oooooooo oooooooo + +o oooooooo oooooooo oooooooo oooooooo oooooooo oooooooo oooooooo oooooooo oooooooo oooooooo

The notation can be further augmented by allowing a leading minus sign. This allows the representation of negative numbers. For a given base, every representation corresponds to exactly one real number
Real number

In mathematics, the real numbers may be described informally in several different ways. The real numbers include both rational numbers, such as 42 and −23/129, and irrational numbers, such as pi and the square root of two; or, a real number can be given by an infinite decimal representation, such as 2.4871773339...., where the digits co...
 and every real number has at least one representation. The representations of rational numbers are those representations that are finite, use the bar notation, or end with an infinitely repeating cycle of digits.

Radix conversion

Bases can be converted between each other by drawing the diagram above and rearranging the objects to conform the new base, for example: 241 in base 5: 2 groups of 5² 4 groups of 5 1 group of 1 ooooo ooooo ooooo ooooo ooooo ooooo ooooo ooooo ++ o ooooo ooooo ooooo ooooo ooooo ooooo

is equal to 107 in base 8: 1 group of 8² 0 groups of 8 7 groups of 1 oooooooo ooooooooo o oooooooo oooooooo++ o o o oooooooo ooooooooo o oooooooo oooooooo

There is, however, a shorter method which is basically the above method calculated mathematically. Because we work in base ten normally, it is easier to think of numbers in this way and therefore easier to convert them to base ten first, though it is possible (but difficult) to convert straight between non-decimal bases without using this intermediate step.

A number anan-1...a2a1a0 where a0, a1... an are all digits in a base b (note that here, the subscript does not refer to the base number; it refers to different objects), the number can be represented in any other base, including decimal, by:

Thus, in the example above:

To convert from decimal to another base one must simply start dividing by the value of the other base, then dividing the result of the first division and overlooking the remainder, and so on until the base is larger than the result (so the result of the division would be a zero). Then the number in the desired base is the remainders being the most significant value the one corresponding to the last division and the least significant value is the remainder of the first division.

The most common example is that of changing from Decimal to Binary
Binary numeral system

The binary numeral system, or notation with a radix of 2. Owing to its straightforward implementation in digital electronic circuitry using logic gates, the binary system is used internally by all modern computers....
.

Infinite representations


The representation of non-integers can be extended to allow an infinite string of digits beyond the point. For example 1.12112111211112 ... base 3 represents the sum of the infinite series
Series (mathematics)

In mathematics, given an infinite set sequence of numbers , a series is informally the result of adding all those terms together: . These can be written more compactly using the summation symbol ?....
:

Since a complete infinite string of digits cannot be explicitly written, the trailing ellipsis (...) designates the omitted digits, which may or may not follow a pattern of some kind. One common pattern is when a finite sequence of digits repeats infinitely. This is designated by drawing a bar across the repeating block:

For base 10 it is called a recurring decimal or repeating decimal.

An irrational number
Irrational number

In mathematics, an irrational number is any real number that is not a rational number ? that is, it is a number which cannot be expressed as a fraction m/n, where m and n are integers, with n non-zero....
 has an infinite non-repeating representation in all integer bases. Whether a rational number
Rational number

In mathematics, a rational number is a number which can be expressed as a quotient of two integers. Non-integer rational numbers are usually written as the vulgar fraction , where b is not 0 ....
 has a finite representation or requires an infinite repeating representation depends on the base. For example, one third can be represented by:

For integers p and q with gcd
Greatest common divisor

In mathematics, the greatest common divisor , sometimes known as the greatest common factor or highest common factor , of two non-zero integers, is the largest positive integer that divisor both numbers without remainder....
(p, q) = 1, the fraction
Fraction (mathematics)

A fraction is a number that can represent part of a whole.The earliest fractions were reciprocals of integers, symbols representing one half, one third, one quarter, and so on....
 p/q has a finite representation in base b if and only if each prime factor
Prime factor

In number theory, the prime factors of a positive integer are the prime numbers that divide into that integer exactly, without leaving a remainder....
 of q is also a prime factor of b.

For a given base, any number that can be represented by a finite number of digits (without using the bar notation) will have multiple representations, including one or two infinite representations:
1. A finite or infinite number of zeroes can be appended:
2. The last non-zero digit can be reduced by one and an infinite string of digits, each corresponding to one less than the base, are appended (or replace any following zero digits):


Historical systems

The decimal
Decimal

The decimal numeral system has 10 as its Base . It is the most widely used numeral system....
 system, base 10, is the base used in everyday life. It is believed that this came about because human beings have ten fingers (including two thumbs). However, other civilizations and contexts used different bases. The Babylonian civilization used a base 60 system. There were not, however, 60 different symbols, as one would expect — each "digit" was represented by a modified decimal system, for example, "12 35 1" = 12×602 + 35×60 + 1. The Babylonians had their own number symbols.

Other bases in human language

A number of Australian Aboriginal languages
Australian Aboriginal languages

The Indigenous Australians languages comprise several Language families and languages and language isolates native to Australia and a few nearby islands, but by convention excluding Tasmania....
 employ binary or binary-like counting systems. For example, in Kala Lagaw Ya
Kala Lagaw Ya

Kala Lagaw Ya is a language spoken on all the western and central Torres Strait Islands, Queensland, Australia. On some islands it has now largely been replaced by Brokan ....
, the numbers one through six are urapon, ukasar, ukasar-urapon, ukasar-ukasar, ukasar-ukasar-urapon, ukasar-ukasar-ukasar.

Various traditional systems of measurement use duodecimal
Duodecimal

The duodecimal system is a numeral system using 12 as its radix. In this system, the number 10 may be written as 'A', and the number 11 as 'B' ....
 reckoning (base twelve), which in English is represented by terms such as dozen (12) and gross (144 = 12 x 12), and measurements such as foot (12 inches).

Certain European languages including Basque
Basque language

Basque is the language spoken by the Basque people who inhabit the Pyrenees in North-Central Spain and the adjoining region of South-Western France....
, French
French language

French is a Romance language spoken around the world by around 80 million people as first language, by 190 million as second language, and by about another 200 million people as an acquired tongue, with significant speakers in 54 countries....
 and Danish
Danish language

Danish is one of the North Germanic languages , a sub-group of the Germanic languages branch of the Indo-European languages. It is spoken by around 6 million people, mainly in Denmark; the language is also used by the 50,000 Danes in the northern parts of Schleswig-Holstein in Germany where it holds the status of minority language....
 incorporate elements of a vigesimal
Vigesimal

The vigesimal or Base - numeral system is based on 20 ....
 (base-twenty) counting system. The Maya and Aztec
Aztec

Aztec is a term used to refer to certain ethnic groups of central Mexico, particularly those groups who spoke the Nahuatl and who achieved political and military dominance over large parts of Mesoamerica in the 14th, 15th and 16th centuries, a period referred to as the Late post-Classic period in Mesoamerican chronology....
s in Mesoamerica
Mesoamerica

Mesoamerica or Meso-America is a region and cultural area in the Americas, extending approximately from central Mexico to Honduras and Nicaragua, within which a number of pre-Columbian society flourished before the Spanish colonization of the Americas in the 15th and 16th centuries....
 used vigesimal, as do the Ainu
Ainu language

Hokkaido Ainu is an Ainu languages spoken by members of the Ainu people ethnic group on the northern Japanese island of Hokkaido.Until the twentieth century, Ainu languages were also spoken throughout the southern half of the island of Sakhalin and by small numbers of people in the Kuril Islands....
 in East Asia
East Asia

East Asia is a subregion of Asia that can be defined in either Geography or cultural terms. Geography and geopolitically, it covers about 12,000,000 km?, or about 28 percent of the Asian continent, about 15 percent bigger than the area of Europe, though some categorize Tibet, Xinjiang, and Mongolia as Central Asia....
.

Applications


Computing

In computing
Computing

Computing is usually defined as the activity of using and developing computer technology, computer hardware and computer software. It is the computer-specific part of information technology....
, the binary
Binary numeral system

The binary numeral system, or notation with a radix of 2. Owing to its straightforward implementation in digital electronic circuitry using logic gates, the binary system is used internally by all modern computers....
 (base 2) and hexadecimal
Hexadecimal

In mathematics and computer science, hexadecimal is a numeral system with a radix, or base, of 16. It uses sixteen distinct symbols, most often the symbols 09 to represent values zero to nine, and A, B, C, D, E, F to represent values ten to fifteen....
 (base 16) bases are used. Computers, at the very simplest level, deal only with sequences of conventional 1s and 0s, thus it is easier in this sense to deal with powers of two. The hexadecimal system came about as shorthand for binary - every 4 binary digits relates to one and only one hexadecimal digit. In hexadecimal, the six digits after 9 are denoted by A, B, C, D, E and F (sometimes a, b, c, d, e, f).

The octal
Octal

The octal numeral system, or oct for short, is the radix-8 number system, and uses the digits 0 to 7. Numerals can be made from Binary numeral system numerals by grouping consecutive digits into groups of three ....
 numbering system is also used as another way to represent binary numbers. In this case the base is 8 and therefore only digits 0, 1, 2, 3, 4, 5, 6 and 7 are used. When converting from binary to octal every 3 binary digits relate to one and only one octal digit.

See also

  • Mixed radix
    Mixed radix

    Mixed radix numeral systems are non-standard positional numeral systems in which the numerical radix varies from position to position. Such numerical representation is advantageous when representing units that are equivalent to each other, but not by the same ratio....
  • Negative base
    Negative base

    A negative base may be used to construct a non-standard positional numeral system. Like other place-value systems, each position holds multiples of the appropriate power of the system's base; but that base is negative ? that is to say, the base is equal to for some natural number ....
  • Radix point
    Radix point

    In mathematics and computing, a radix point is the symbol used in numerical representations to separate the integer part of a number from its fraction part ....
  • Radix sort
    Radix sort

    In computer science, radix sort is a sorting algorithm created by Dr. Ian P. Turnipseed that sorts integers by processing individual digits. Because integers can represent strings of characters and specially formatted floating point numbers, radix sort is not limited to integers....
  • Decimal superbase
    Decimal superbase

    Many numeral systems with base 10 use a superimposed larger base of 100, 1000, 10000 or 1000000. It is a power of 10 and might be called a superbase or superradix of the numeral system....


External links