double fVal = 1.234; wchar_t wbuf[16]; char buf[16]; buf[0] = 0; int dec, sign; dec = wsprintf(&wbuf[0], _T("%.3f"), fVal); dec = sprintf(&buf[0], "%.3f", fVal);
CRT
sprintf
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)