QString & QString::setNum ( float n, char f = 'g', int prec = 6 )
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
Sets the string to the printed value of n, formatted in format f with precision prec, and returns a reference to the string.
The format f can be 'f', 'F', 'e', 'E', 'g' or 'G'. See arg() for an explanation of the formats. |