[Qt-interest] qDebug() and double values

Phil phillor at telstra.com
Tue Dec 22 02:47:44 CET 2009


On Mon, 21 Dec 2009 06:06:55 pm Sean Harmer wrote:
> 
> qDebug() << QString::number( d, 'f', 3 );
> qDebug() << qSetRealNumberPrecision( 10 ) << "d1 = " << d1;

Thank you Sean and Josh for your suggestions. As always there's more than 
one way to skin a cat.

I've used QString::number a lot but hadn't thought of using it with qDebug().

-- 
Regards,
Phil



More information about the Qt-interest-old mailing list