Double precision

From Wikipedia, the free encyclopedia

(Redirected from Double-precision)
Jump to: navigation, search

In computing, double precision is a computer numbering format that occupies two adjacent storage locations in computer memory. A double precision number, sometimes simply called a double, may be defined to be an integer, fixed point, or floating point.

Modern computers with 32-bit stores (single precision) provide 64-bit double precision. Double precision floating point is an IEEE 754 standard for encoding floating point numbers that uses 8 bytes.

Contents

Sign bit: 1 
Exponent width: 11  
Significand precision: 52 (53 implicit)

The format is written with an implicit integer bit with value 1 unless the written exponent is all zeros. With the 52 bits of the fraction mantissa appearing in the memory format the total precision is therefore 53 bits (approximately 16 decimal digits, log10(253)). The bits are laid out as follows:

Image:General_double_precision_float.png

Emin (0x001) = -1022
Emax (0x7fe) = 1023
Exponent bias (0x3ff) = 1023

The true exponent = written exponent - exponent bias

0x000 and 0x7ff are reserved exponents 
0x000 is used to represent zero and denormals
0x7ff is used to represent infinity and NaNs

All bit patterns are valid encodings.

The entire double precision number is described by:

(-1)^{sign} \times 2^{exponent - exponent~bias} \times 1.mantissa

 0x3ff0 0000 0000 0000   = 1
 0xc000 0000 0000 0000   = -2
 0x7fef ffff ffff ffff   ~ 1.7976931348623157 x 10308 (Max Double)
 0x3fd5 5555 5555 5555   ~ 1/3

(1/3 rounds down instead of up like single precision, because of the odd number of bits in the significand.)

 0x0000 0000 0000 0000   = 0
 0x8000 0000 0000 0000   = -0
 0x7ff0 0000 0000 0000   = Infinity
 0xfff0 0000 0000 0000   = -Infinity

Advanced Search
Included Web Search Engines


Safe Search

close

Top Matching Results

Occasionally Search.com will highlight specialized results that are based on the context of your query. Examples of specialized results include specific links to news, images, or video.

Top Matching Results may highlight information from other Search.com pages, content from the CNET Network of sites, or third party content. The listings are based purely on relevance. Search.com does not receive payment for listings in this section but our partners that provide this data may get paid for listing these products.

Sponsored Links

This section contains paid listings which have been purchased by companies that want to have their sites appear for specific search terms and related content. These listings are administered, sorted and maintained by a third party and are not endorsed by Search.com.

Search Results

Search.com sends your search query to several search engines at one time and integrates the results into one list which has been sorted by relevance using Search.com's proprietary algorithm. You can customize the list of search engines included in your metasearch from the preferences.

The search engines that are used in your metasearch may allow companies to pay to have their Web sites included within the results. To view the Paid Inclusion policy for a specific search engine, please visit their Web site. Search.com does not accept payment or share revenue with any search engine partner for listings in this section.