Hi
Do you know about a way how to work with (double) types in text controls...
iTotal is type (double), imagine it carries a value of 3.14159.
Code:
wsprintf(chTotal, "%d", (double)iTotal);
SetDlgItemText(hwndDlg, nControl, chTotal);
Using this code returns me "1413551940" even if i try
Code:
wsprintf(chTotal, "%d", (float)iTotal);
SetDlgItemText(hwndDlg, nControl, chTotal);
the same error ocures...
Only works if I request (int) value but that is not with decimal place. I am quite confused why does the programme return this?
Can you plase help with that somehow? THX