[Interest] QTextStream: output representation of floating point number with exactly n digits

Alex Malyushytskyy alexmalvtk at gmail.com
Sat Oct 6 01:28:46 CEST 2012


setRealNumberNotation ( QTextStream::ScientificNotation )
with  setRealNumberPrecision() to specify number of digits?

Alex

On Fri, Oct 5, 2012 at 3:59 PM, Rui Maciel <rui.maciel at gmail.com> wrote:
> Is it possible to manipulate QTextStream so that it outputs a
> representation of a float or a double with exactly n digits?  I've tried
> setRealNumberPrecision() but it doesn't appear to have any effect.
>
>
> Thanks in advance,
> Rui Maciel
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest



More information about the Interest mailing list