I'm trying to get a float formatted to a CString and displayed in an Edit box. So I'm going to do it likebut I don't want to show trailing zeros. That is if the number is "19.00" I want to show "19", NOT "19.00". According to MSDN I have to use the # flag in my format statement and that's my problem. How do I use it in conjunction with the other flags in my code example?PHP Code:m_sStrRange.Format("%3.2f", m_fRange);




Reply With Quote