A real number is an element of the complete ordered field . This includes integers, rational numbers such as , and irrational numbers such as . The number line represents each real number by a point, and the total order distinguishes which of two different points is larger.
The field operations permit addition, subtraction, multiplication and division by nonzero real numbers. Completeness adds the least-upper-bound property: every nonempty set of real numbers that is bounded above has a supremum in . For example, the positive real numbers whose squares are less than two have supremum . That supremum is not a rational number, illustrating why the rational numbers alone leave a gap.
The density of the rational numbers means every real number can be approximated arbitrarily closely by rational numbers. Constructions through Cauchy sequences or Dedekind cuts make those approximations into a precise description of .
A negative real number is a real number , lying to the left of zero on the number line. Equivalently, for a positive real number . Examples include , and ; zero is excluded.
The sum of two negative real numbers is negative, while their product is positive. Multiplication by a negative real number reverses an inequality: if and , then . These are consequences of compatibility between the total order and the arithmetic of an ordered field, rather than independent rules about written minus signs.
A nonnegative real number is a real number . The set of all such numbers is , which includes zero as well as the positive real numbers. The word nonnegative is therefore weaker than strictly positive.
This set is closed under addition and multiplication, but negating a nonzero member leaves it. Every real square and every absolute value is nonnegative. A variance can equal zero, as it does for a constant random variable; calling every variance positive would incorrectly exclude that legitimate case. Nonnegative constraints similarly allow zero as a feasible boundary value in mathematical optimization.
The condition that a real number is at least zero. A nonnegative flow in a directed flow network follows the specified orientation or has zero value; a negative algebraic solution would describe the opposite orientation instead.
A positive real number is a real number with . Zero is excluded; allowing zero gives a nonnegative real number. Both and are positive.
The sum, product, and reciprocal of positive real numbers are positive. Consequently the positive real numbers form a group under multiplication, and the natural logarithm converts that multiplication into addition: . Positivity is also the domain restriction that makes the real logarithm well-defined.
For coprime integers , a Stoneham number is
For example, . The rapidly growing exponents separate long blocks in its base- expansion.
These constants are useful as explicit constructions in the theory of normal numbers: the Stoneham number is normal in base under the stated coprimality hypothesis. Normality means every finite block of base- digits has the expected limiting frequency; it is much stronger than merely being irrational.
For a real number , its cube root is the unique real number satisfying . The function is strictly increasing, so negative inputs also have a unique real cube root.
The integer cube root of a nonnegative integer is , the unique integer satisfying . It can be computed by binary search using integer cube comparisons.
A number line represents real numbers as points on a line, with zero as origin and a chosen positive direction and unit scale. Addition becomes a shift and multiplication becomes a rescaling about zero.
A linear scale places a value at a position , where and are constants. Equal differences in occupy equal distances because . This contrasts with a logarithmic scale, which assigns equal distances to equal ratios.
The Archimedean property says that the natural numbers are unbounded in the real numbers. In particular, for every positive real number there is a positive integer with . Otherwise a purported upper bound for all natural numbers contradicts the least-upper-bound property by translating that bound by one.
A binary representation writes a number in positional notation with radix two and binary digits zero and one. To the left of the binary point the place values are ; to its right they are . For example,
Binary notation changes the numeral, not the underlying number. The same value is in decimal. A finite binary fraction represents a dyadic rational, while an infinite binary expansion can represent any real number in the unit interval. Storing a finite binary string additionally requires an interpretation such as unsigned interpretation or two's complement.
After adding least-significant binary digits, the numerical sum of the two processed input suffixes equals the written result digits plus , with . Initially both suffixes are empty. For the next column, write and pass to the next column. Multiplying these column quantities by preserves the equation. After all columns, the remaining carry supplies the extra leading digit, proving correctness without converting either full input to a machine integer.
For an -bit binary string , the unsigned interpretation assigns positive positional weights to its bits. Its values range from zero to . The same stored bits have two's complement value , so interpreting a machine word is a separate choice from storing its bits.
For a positive integer , its bit length is the number of binary digits in its usual representation:
Equivalently, is the unique positive integer satisfying . For example, has bit length four, and has bit length four too. The inequalities provide an exact characterization without a floating-point logarithm.
Many integer programming interfaces define the bit length of zero as zero. That convention counts no significant one-bit; it differs from the written binary numeral , which has one character. A fixed-width machine word can also contain leading zero bits that do not contribute to the value's bit length.
Every real number has a binary expansion
For , construct it by repeated doubling. Set , then and , using the floor function. Each remainder stays in , and induction gives
The remaining error is less than , so the finite partial sums converge to . For , choose every binary digit equal to one and use the geometric series.
Figure 1.
Successive binary digits refine an interval around
. Each blue interval runs from the th partial sum to . Filled left endpoints are included and open right endpoints are excluded. The red line marks ; the labels show its successive binary prefixes. Each new digit halves the remaining interval's length. Details.
An expansion need not be unique: . For , this ambiguity occurs precisely at the dyadic rationals, through a terminating expansion and an alternative ending in ones. At the endpoints, the displayed purely fractional form uses all zeros for zero and all ones for one. A general nonnegative real number is represented by adding the finite binary representation of its floor to an expansion of its fractional part; a negative real number is handled by a separate sign. In that broader notation, too.
A base-two positional fraction with a binary point separating nonnegative and negative powers of two. For example, . A finite expansion is a dyadic rational: with fractional places, its value is an integer divided by . Conversely, any nonnegative reduced fraction whose denominator is a power of two has a finite binary expansion. Leading integer zeroes and trailing fractional zeroes do not change its value.
A representation with and only finitely many nonzero coefficients. If counts these representations, then , , and for . The integer parity of determines whether the coefficient of must be 1 or may be 0 or 2.
A dyadic rational is a rational number of the form with an integer and a nonnegative integer . Examples are , , zero and every integer. In lowest terms, its denominator is a power of two, so its magnitude has a finite binary expansion.
A positive dyadic rational also has a binary representation ending in infinitely many ones. Replacing the last nonzero binary digit by zero and filling all lower places with ones preserves the value, because
For example, . Zero has no second nonnegative expansion of this type. The same ambiguity applies to the magnitude of a negative dyadic rational, with its sign kept separately.
The extended real numbers adjoin and to . They preserve the total order but leave some arithmetic expressions, such as , undefined.

Ancestors (4)

  1. Arithmetic
  2. Area of mathematics
  3. Mathematics
  4. Home

Discussion (0) New discussion

There are no discussions about this article yet.

Articles by others on the same topic (2)

A real number is any value that can represent a quantity along a continuous line. This includes all the rational numbers (which can be expressed as the quotient of two integers, such as 1/2 or -3) and all the irrational numbers (which cannot be expressed as a simple fraction, such as the square root of 2 or pi). Real numbers can be classified into several categories: - **Rational Numbers**: Numbers that can be expressed as a fraction (e.g.