[go: nahoru, domu]

Jump to content

Normalized number: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Ah, floating-point numbers have fixed points when normalised.
FrescoBot (talk | contribs)
Line 2: Line 2:
A [[real number]] when written out in the '''normalized''' form is as follows:
A [[real number]] when written out in the '''normalized''' form is as follows:
:<math>\pm d_0.d_1d_2d_3\dots\times 10^n</math>
:<math>\pm d_0.d_1d_2d_3\dots\times 10^n</math>
where ''n'' is an [[integer]], <math>d_0,</math> <math>d_1,</math> <math>d_2</math>, <math>d_3</math>... are the [[Numerical digit|digits]] of the number in base 10, and <math>d_0</math> is not zero. That is, its leading digit (i.e. leftmost) is not zero and is followed by the decimal point. This is the form of [[Scientific_notation|scientific notation]]. An alternative style is to have the first non-zero digit ''after'' the decimal point.
where ''n'' is an [[integer]], <math>d_0,</math> <math>d_1,</math> <math>d_2</math>, <math>d_3</math>... are the [[Numerical digit|digits]] of the number in base 10, and <math>d_0</math> is not zero. That is, its leading digit (i.e. leftmost) is not zero and is followed by the decimal point. This is the form of [[scientific notation]]. An alternative style is to have the first non-zero digit ''after'' the decimal point.


As examples, the number <math>x=918.082</math> in normalized form is
As examples, the number <math>x=918.082</math> in normalized form is

Revision as of 02:09, 27 December 2014

A real number when written out in the normalized form is as follows:

where n is an integer, , ... are the digits of the number in base 10, and is not zero. That is, its leading digit (i.e. leftmost) is not zero and is followed by the decimal point. This is the form of scientific notation. An alternative style is to have the first non-zero digit after the decimal point.

As examples, the number in normalized form is

,

while the number −0.00574012 in normalized form is

Clearly, any non-zero real number can be normalized.

The same definition holds if the number is represented in another radix (that is, base of enumeration), rather than base 10. In base b a normalized number will have the form

where again and the "digits" , ... are integers between and .

Converting a number to base two and normalizing it are the first steps in storing a real number as a binary floating-point number in a computer, though bases of eight and sixteen are also used. Although the point is described as "floating", for a normalised floating point number its position is fixed, the movement being reflected in the different values of the power.

See also