[go: nahoru, domu]

Jump to content

Normalized number

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by NickyMcLean (talk | contribs) at 12:44, 26 September 2014 (Ah, floating-point numbers have fixed points when normalised.). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

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