Hi, Richard! On Thursday 27 April 2006 01:43, Richard Smith wrote:> You could store a flag to indicate whether this is the first time through> the loop, and if so then set maxd. Or you can use this:>> š double minDbl = -std::numeric_limits::max();>> This will work for all IEEE-754 compliant systems (x86, x86_64, Solaris,> etc), and it's what I use at work (where those are the only platforms we> support), but it is a little messy.Well, as the project I'm developing this for is supposed to be used only on x86 systems, i think that using -max() + somekind of warning in code is the way I'll choose :). Thanks a lot for advice!Dmitry. >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<