I don't understand the question.
I don't understand the question.
How display decimal numer on .arg ....?
double nummer = .33 ;
QString("Cent: %1").arg(nummer); /* comming 0 */
QString str = QString("delta: %1").arg(d, 0, 'E', 3);
i am confused on E g f..... i can only display decimal point on console app...
and i like display double nummer = .33 on .arg() ....
Are you sure "nummer" is double? Or maybe you're using a comma instead of a dot while initialising the variable?
The following:
Qt Code:
#include <QString> #include <QtDebug> int main(){ return 0; }To copy to clipboard, switch view to plain text mode
returns:
"Value: 0.33"
patrik08 (6th March 2007)
Bookmarks