A non-integer representation uses non-integer numbers as the radix, or base, of a positional numeral system. For a non-integer radix ò > 1, the value of
is
The numbers d<sub>i</sub> are non-negative integers less than ò. This is also known as a ò-expansion, a notion introduced by and first studied in detail by . Every real number has at least one (possibly infinite) ò-expansion. The set of all ò-expansions that have a finite representation is a subset of the ring Z[ò, ò<sup>âÂÂ1</sup>].
There are applications of ò-expansions in coding theory and models of quasicrystals.
ò-expansions are a generalization of decimal expansions. While infinite decimal expansions are not unique (for example, 1.000... = 0.999...), all finite decimal expansions are unique. However, even finite ò-expansions are not necessarily unique, for example à+ 1 = ÃÂ<sup>2</sup> for ò = ÃÂ, the golden ratio. A canonical choice for the ò-expansion of a given real number can be determined by the following greedy algorithm, essentially due to and formulated as given here by .
Let be the base and x a non-negative real number. Denote by the floor function of x (that is, the greatest integer less than or equal to x) and let be the fractional part of x. There exists an integer k such that . Set
and
For , put
In other words, the canonical ò-expansion of x is defined by choosing the largest d<sub>k</sub> such that , then choosing the largest d<sub>kâÂÂ1</sub> such that , and so on. Thus it chooses the lexicographically largest string representing x.
With an integer base, this defines the usual radix expansion for the number x. This construction extends the usual algorithm to possibly non-integer values of ò.
Following the steps above, we can create a ò-expansion for a real number (the steps are identical for an , although must first be multiplied by to make it positive, then the result must be multiplied by to make it negative again).
First, we must define our value (the exponent of the nearest power of greater than , as well as the amount of digits in , where is written in base ). The value for and can be written as:
After a value is found, can be written as , where
for . The first values of appear to the left of the decimal place.
This can also be written in the following pseudocode:
Note that the above code is only valid for and , as it does not convert each digits to their correct symbols or correct negative numbers. For example, if a digit's value is , it will be represented as instead of .
Base behaves in a very similar way to base 2 as all one has to do to convert a number from binary into base is put a zero digit in between every binary digit; for example, 1911<sub>10</sub> = 11101110111<sub>2</sub> becomes 101010001010100010101<sub></sub> and 5118<sub>10</sub> = 1001111111110<sub>2</sub> becomes 1000001010101010101010100<sub></sub>. This means that every integer can be expressed in base without the need of a radix point. The base can also be used to show the relationship between the side of a square to its diagonal as a square with a side length of 1<sub></sub> will have a diagonal of 10<sub></sub> and a square with a side length of 10<sub></sub> will have a diagonal of 100<sub></sub>. Another use of the base is to show the silver ratio as its representation in base is simply 11<sub></sub>. In addition, the area of a regular octagon with side length 1<sub></sub> is 1100<sub></sub>, the area of a regular octagon with side length 10<sub></sub> is 110000<sub></sub>, the area of a regular octagon with side length 100<sub></sub> is 11000000<sub></sub>, etc...
In the golden base, some numbers have more than one decimal base equivalent: they are ambiguous. For example, 11<sub>ÃÂ</sub> = 100<sub>ÃÂ</sub>, since ÃÂò = à+ 1.
There are some numbers in base ÃÂ, the supergolden ratio, that are also ambiguous. For example, 101<sub>ÃÂ</sub> = 1000<sub>ÃÂ</sub>, since ÃÂó = ÃÂò + 1.
With base e the natural logarithm behaves like the common logarithm in base 10, as ln(1<sub>e</sub>) = 0, ln(10<sub>e</sub>) = 1, ln(100<sub>e</sub>) = 2 and ln(1000<sub>e</sub>) = 3 (or more precisely the representation in base e of 3, which is of course a non-terminating number). This means that the integer part of the natural logarithm of a number in base e counts the number of digits before the separating point in that number, minus one.
The base e is the most economical choice of radix ò > 1, where the radix economy is measured as the product of the radix and the length of the string of symbols needed to express a given range of values. A binary number uses only two different digits, but it needs a lot of digits for representing a number; base 10 writes shorter numbers, but it needs 10 different digits to write them. The balance between those is base e, which therefore would store numbers optimally.
Base ÃÂ can be used to more easily show the relationship between the diameter of a circle to its circumference, which corresponds to its perimeter; since circumference = diameter ÃÂ ÃÂ, a circle with a diameter 1<sub>ÃÂ</sub> will have a circumference of 10<sub>ÃÂ</sub>, a circle with a diameter 10<sub>ÃÂ</sub> will have a circumference of 100<sub>ÃÂ</sub>, etc. Furthermore, since the area = ÃÂ ÃÂ radius<sup>2</sup>, a circle with a radius of 1<sub>ÃÂ</sub> will have an area of 10<sub>ÃÂ</sub>, a circle with a radius of 10<sub>ÃÂ</sub> will have an area of 1000<sub>ÃÂ</sub> and a circle with a radius of 100<sub>ÃÂ</sub> will have an area of 100000<sub>ÃÂ</sub>.
In every positional number system, not all numbers are expressed uniquely. For example, in base 10, the number 1 has two representations: 1.000... and 0.999.... The set of numbers with two different representations is dense in the reals, but the question of classifying real numbers with unique ò-expansions is considerably more subtle than that of integer bases.
Another problem is to classify the real numbers whose ò-expansions are periodic. Let ò > 1, and Q(ò) be the smallest field extension of the rationals containing ò. Then any real number in [0,1) having a periodic ò-expansion must lie in Q(ò). On the other hand, the converse need not be true. The converse does hold if ò is a Pisot number, although necessary and sufficient conditions are not known.