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
Like Mark said, the standard says that its a double unless its followed by an f.
There are good reasons behind the standard and using compiler flags to get around it for convenience is bad practice.
So, the correct approach would be:
Its probably not the answer you were looking for, but it is the approach you should use if you care about the longevity of your code base.