Hi,
iam facing issues with loss of precision when using CString's Format function, heres a code snippet.
How do i prevent this loss of precision?Code:double func(double dvar) { return dvar*0.00277777778; } //code CString tempStr; double var = func(10); //var is 0.0277777778 tempStr.Format("%G",var); //tempStr is 0.0277778
thanks in advance




Reply With Quote