June 25th, 1999, 01:49 AM
Hi,
I have a dialog that contains CEdit boxes. They are attached to a member, as m_fValue. When m_fValue is close to 0, but not exactly 0 as 5.675799877e-10, I see only 5.6757 in the CEdit ! So the user get a wrong information.
I can replace m_fValue by m_sValue and use m_sValue.Format("%5.3f",&m_fValue), but this is not elegant and I have to take care about the relevant format for each CEdit box.
Is there an elegant way ?
I have a dialog that contains CEdit boxes. They are attached to a member, as m_fValue. When m_fValue is close to 0, but not exactly 0 as 5.675799877e-10, I see only 5.6757 in the CEdit ! So the user get a wrong information.
I can replace m_fValue by m_sValue and use m_sValue.Format("%5.3f",&m_fValue), but this is not elegant and I have to take care about the relevant format for each CEdit box.
Is there an elegant way ?