Continuation of Double type
This is the code I was advised and which works well.
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.000000Code:double iTotal; char Total; TCHAR chTotal; sprintf(Total, "%f", iTotal); wsprintf(chTotal, "%s", Total); SetDlgItemText(hwndDlg, nControl, chTotal);
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?