PDA

View Full Version : C++ double



Dorian Mayorquin
December 14th, 2010, 09:52 PM
Hello, when i checked the range of values in the int type it says that is -32768 to +32767 but when i checked the double type the range of values is -1.7E+308, what does that mean?

Intrepid Ibex
December 14th, 2010, 10:09 PM
That means "-1.7 * 10^308" but double values are really from 5,0 * 10^-324 to 1,7 * 10^308 (not -1.7 * 10^308 to 1.7 * 10^308).

roccivic
December 17th, 2010, 02:38 PM
http://en.wikipedia.org/wiki/Scientific_notation

MadCow108
December 17th, 2010, 03:31 PM
http://en.wikipedia.org/wiki/Double_precision_floating-point_format