Re: very small qreal number
You did not tell us, how you want to output that stuff... we have to guess what your problem is.
Anyway, have a look at QTextStream::setRealNumberNotation
HTH
Re: very small qreal number
I read and generate number with a QTextstream so i use this code to resolve the problem:
Code:
out.setRealNumberPrecision ( 5 );
The default real number precision is '6' that put in some case, the exponential "e" notation........setting it on '5' it doesn't appear.......
Is it just a case or is there a reason??
Re: very small qreal number
A clear case of "read the docs".
The default for QTextStream::setRealNumberNotation is QTextStream::SmartNotation.
(Checked the source...)
TextStream::SmartNotation => Scientific or fixed-point notation, depending on which makes most sense (printf()'s %g flag).
So, the answer "why" your code behaves like it does is probably given by "man 2 printf".