Is there a native c++ variable type that\'s \"bigger\" than a double?
float is 7
double is 15 (of course depending on the compiler)
Is there anything bigger tha
C++ has long double
, but there is no guarantee that it's any more precise than a plain double
. On an x86 platform, usually double
is 64 bits, and long double
is either 64 or 80 bits (which gives you 19 significant figures, if I remember right).
Your mileage may vary, especially if you're not on x86.