|
-
June 25th, 1999, 01:49 AM
#1
formated number in CEdit
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 ?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|