I'm not getting one significant digit to the right of the decimal when using _wtof. Here is my code:
DOUBLE fVersion = 0.0; // Initialize to zero; confirmed fVersion is 0.00000000000000000
TCHAR sVersion[64] = {0};
_tcscpy_s(sVersion,64,L"1.1");
fVersion = _wtof(sVersion);
fVersion is 1.1000000000000001 after _wtof is used, not 1.1.
Can anyone shed some light on why? But most importantly, how to fix so it's just 1.1?