Continuation of http://cboard.cprogramming.com/showthread.php?t=93851

This is the code I was advised and which works well.
Code:
double iTotal;
char Total[64];
TCHAR chTotal[64];

sprintf(Total, "%f", iTotal);
wsprintf(chTotal, "%s", Total);
SetDlgItemText(hwndDlg, nControl, chTotal);
It return the value with 6 decimal places even if all of those decimal places are 0. So the result of 36 looks like 36.000000
Also if I try to type more then 6 decimal places it shows no more then 6.

What shall I do now with it? Shall I try some other conversion of types or a method which return only certain number of decimals?