I\'m currently working on a C++ project which does numerical calculations. The vast, vast majority of the code uses single precision floating point values and works perfectl
If you can afford GCC 4.7 or Clang 3.1, use a user-defined literal:
double operator "" _d(long double v) { return v; }
Usage:
std::cout << sizeof(1.0E200_d) << std::endl; std::cout << 1.0E200_d << std::endl;
Result:
8 1e+200