November 3rd, 2007, 12:48 PM  #1 
Senior Member Joined: Apr 2007 Posts: 2,140 Thanks: 0  DoublePrecision in C++
The following source code includes the term "double". I need to know the exact defintion of "double". I kinda know what it means, but I still need to know what is the term "double" is for. Code: #include <iostream> int main() { double radius; double area; // Step 1: Read in radius radius = 20 // Step 2: Compute the area area = radius * radius * 3.14159 // Step 3: Display the area std::cout << "The area is " << area << std::endl; return 0; } 
November 3rd, 2007, 03:11 PM  #2  
Global Moderator Joined: Nov 2006 From: UTC 5 Posts: 16,046 Thanks: 938 Math Focus: Number theory, computational mathematics, combinatorics, FOM, symbolic logic, TCS, algorithms  Re: DoublePrecision in C++ Quote:
"double" is like "float", except it typically uses twice as many bits. Double is usually 64 bits, holding values up to about 10^308. It has all the special characteristics of float: infinities, NaN, signed zeros, and subnormal numbers.  

Tags 
doubleprecision 
Thread Tools  
Display Modes  

Similar Threads  
Thread  Thread Starter  Forum  Replies  Last Post 
trig equation involving precision.  minimalmiser  Algebra  6  December 29th, 2010 06:38 AM 
binomial series precision  povilasb  PreCalculus  8  December 25th, 2010 11:49 AM 
Recall/Precision  jimmyfo  Algebra  1  November 28th, 2009 08:39 AM 
Maxima: More precision in draw3d objects  adanedhel728  Applied Math  0  November 10th, 2009 12:15 AM 
[Arbitraryprecision] Calculating mathematical constants  CRGreathouse  Applied Math  2  December 13th, 2006 09:12 PM 