Hi all,
I am presently creating a program in C++, and part of this program uses the WINAPI QueryPerformanceCounter() function to work out the time taken for certain events.
The issue I am having is when I convert the double that my calculation gives me into a string, using
sprintf(tempbuff, "%.15g", tok->fValue);
When in the 'Debug' solution Config, it works perfectly well, producing numbers like 1.8736523754e+006
However, when in the release solution Config, it will produce something completely wrong:
1873652.3754...
What is causing this? How can I fix the problem? What is the difference between the two configs anyway?
Thankyou in advance.