How to output shaping
CString string;

//Integer

Strait. Format ("%d", n);

m_num 1。 SetWindowText(str);

//floating point

Strait. Format ("%f", m);

m_num 1。 SetWindowText(str);

ps:

Yangruihan 123 You are ridiculous. You find fault with others and score points, but what you say is wrong. Don't pretend to be a big-tailed wolf. Don't trust me. Try lf and F.

%f You can format float and double types, but usually only 6 decimal places are reserved. If you want to display multiple decimal places, you can do this:

Strait. Format ("%. 16f", m); //Keep 16 decimal places.

Strait. Format ("%. 10f", m); //Keep 10 decimal place.