Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Formatting Text in DDX_TEXT item

Status
Not open for further replies.

imperialtimelord

Programmer
Mar 21, 2004
5
AU
Hi,

I want to format the text in a DDX_TEXT item. I wish to display numbers to two decimal places. I have already rounded the numbers as needed, but when displaying a number such as 1.2, I want the output to be 1.20, it currently just outputs 1.2 (with no zero)

Is there an easy way of formatting this text. Example code line to clarify where I mean:

DDX_Text(pDX, IDC_EDIT5, m_Totals);


Thanks in advance.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top