Quote Originally Posted by VladimirF View Post
What was the point of this code? Ans how it differs from:
Code:
_tprintf(_T("%.2f"), fAmt);
The multiply and then divide by 1000 part ensures that he doesn't lose the 3-rd decimal place, i.e. 1237.8599999999999 becomes 1237.86 and 1237.8549999999999 becomes 1237.85.