[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: [OFFTOPIC] std::numeric_limits<double>::min() question.
From:       "Will Entriken" <kde.org () 2006 ! phor ! net>
Date:       2006-04-26 20:36:03
Message-ID: c0be00e90604261336h6e3498a9pf120227f82d992d6 () mail ! gmail ! com
[Download RAW message or body]

i think that looks find, unless you know the first value of d, before
you enter the loop, just make it that.

good luck
-WE

On 4/26/06, Dmitry Suzdalev <dimsuz@gmail.com> wrote:
> On Thursday 27 April 2006 00:12, Will Entriken wrote:
> > std::numeric_limits<double>::min() return the minimum positive value.
> Hmm... yes? :)
> Bahhh, I should read docs more carefully, thanks! :)
>
> > you could try maxd = -1 if d will be non-negative. that will be pretty
> > obvious what is going on.
> Nope, d might be negative - that's why I didn't use -1 for maxd.
> So, then another question:
> Maybe I'm wrong when I say that
> "-std::numeric_limits<double>::max()" is messy-looking?
>
> Now that I know (thanks, Will), that min() return minimum _positive_ value, I
> think that using -max() is all right. Is this so?
>
> Thanks!
> Dmitry.
>
> >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
>
 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic