Qt Code:
double dValue = 0.00200;To copy to clipboard, switch view to plain text mode
The strValue is getting as 2.0e-03
I don't want the preceding zeros in the exponent part. How can i do that ?
Qt Code:
double dValue = 0.00200;To copy to clipboard, switch view to plain text mode
The strValue is getting as 2.0e-03
I don't want the preceding zeros in the exponent part. How can i do that ?
i think only QRegExp helps you.
may be like this
Qt Code:
int pos = reg.indexIn(strValue); if(pos!=-1){ strValue.replace(reg,reg.cap(1) + reg.cap(3)); }To copy to clipboard, switch view to plain text mode
Last edited by kwisp; 22nd October 2009 at 08:02.
east or west home is best
George Neil (22nd October 2009)
Great.... That works.....![]()
Bookmarks