Link to home
Start Free TrialLog in
Avatar of evo_x
evo_xFlag for Romania

asked on

CString decimal format with thousand separator?

how can I format a number into a string with thousand decimal separator?

like 123,123,123 instead of 123123123
Avatar of deer22
deer22
Flag of United States of America image

String.Format("{0:n}", 1234);
 
string.Format("{0:n0}", 9876); // no decimals.
Avatar of evo_x

ASKER

that's for .NET framework C#, not MFC/C++
ASKER CERTIFIED SOLUTION
Avatar of AndyAinscow
AndyAinscow
Flag of Switzerland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of evo_x

ASKER

thanks !