Re: numeric value problem...
Try this: QString::number(le01->text().toDouble() / 2, 'f')
And try to look it up in the Qt docs next time.
Re: numeric value problem...
Thanks for your help and your time!!!
PD/ About qt docs, i did it and i didn't find the answer..... that's is the post reason!!
Re: numeric value problem...
Then look closer ;)
Quote:
QString QString::number ( double n, char format = 'g', int precision = 6 ) [static]
This is an overloaded member function, provided for convenience.
Returns a string equivalent of the number
n, formatted according to the specified
format and
precision. The
format can be 'f', 'F', 'e', 'E', 'g' or 'G' (see the
arg() function documentation for an explanation of the formats).
Unlike
QLocale::toString(), this function does not honor the user's locale settings.
See also
setNum() and
QLocale::toString().