Click here to Skip to main content
15,919,931 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

How do we Display The Double Value in Edit Box
example,we can display string using
SetDlgItemText(IDCRESULT,str);//IDRESULT is the Edit Control

What do we do for Double Values

Else

hou do we convert Double to String
Posted

1 solution

// hou do we convert Double to String
Try it :) :
C++
{
  double dValue(3.1415926);
  CString cszValue;
  cszValue.Format(_T("%.2f"), dValue);
}
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900