imperialtimelord
Programmer
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.
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.