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 that’s native, or even non-native?
Is there a native c++ variable type that’s bigger than a double? float is
Share
C++ has
long double, but there is no guarantee that it’s any more precise than a plaindouble. On an x86 platform, usuallydoubleis 64 bits, andlong doubleis 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.