If I use the following code, I got a long display of the float number. How can I format it, for example, like %.3f in the C/C++ format string, so that it shows only three digits after the point?
Code: Select all
text_centripetal[0]->setText(core::stringw(centripetal[0]).c_str());